Hi! Are there any bindings to use a Rust library (or C one) in Roc apart from platform?
Hi @Ilya Shmygol,
Unfortunately not, can you share what you have in mind? Perhaps I can suggest an easy alternative solution
Basically, I was just wondering while playing with Roc. An example I had in mind would be a regexp parser. I appreciate that writing a native parser might be a better approach, but it's so complicated. I thought it would be nice to use something like PCRE until someone brave implements a production-ready native library.
Yeah, currently it would have to either be manually added to a fork of a platform or built directly in Roc.
Long term, I would expect some platforms to support shared librarly ffi (will be kinda awkward, but should be totally doable).
Got it, thanks. Still one of the best languages I know.
Last updated: Jul 06 2025 at 12:14 UTC