3 ms·
Yes, you can call a library written in Rust from C. You need to do some work to make it work, but it can be done. There was even a project to implement a libc i
by steveklabnik 5y ago
Yes, you can call a library written in Rust from C. You need to do some work to make it work, but it can be done. There was even a project to implement a libc in Rust, though I haven’t heard about it in a while, I’m not sure what it’s current state is.
- karmakaze 5y agoThanks for the info. I'm one of perhaps many who wish had a need to use Rust in day to day work. In the meantime, Go or Ruby with Sorbet isn't the worst.
- steveklabnik 5y agoOne of, if not the first, production uses of Rust was a Ruby gem :)
- vlmutolo 5y agoIt sounds like you're thinking of relibc. https://gitlab.redox-os.org/redox-os/relibc/ https://gitlab.redox-os.org/redox-os/relibc/ From someone who only loosely follows the project, it seems like things are going really well.