2 ms·
> If so, will it be possible to call rust from, e.g., C code? I'd like to have an alternative to c/c++ for writing native extensions for interpreted languages.
by masklinn 13y ago
> If so, will it be possible to call rust from, e.g., C code? I'd like to have an alternative to c/c++ for writing native extensions for interpreted languages.
Yes. Technically it's already possible[0][1] but AFAIK it requires throwing out all (?) of the stdlib. rust-core[2] is an exploration of a runtime-less subset of the stdlib, which would ultimately be usable under a no_rt flag or something like that (at this point you have to disable the stdlib entirely and use rust-core instead)
[0] https://github.com/mozilla/rust/issues/3608 https://github.com/mozilla/rust/issues/3608
[1] https://github.com/charliesome/rustboot https://github.com/charliesome/rustboot
[2] https://github.com/thestinger/rust-core https://github.com/thestinger/rust-core