4 ms·
Here's one that does that: https://lib.rs/crates/inline-c https://lib.rs/crates/inline-c I'm not sure it's what you're looking for, but it seems like a good st
by swsieber 4y ago
Here's one that does that: https://lib.rs/crates/inline-c https://lib.rs/crates/inline-c
I'm not sure it's what you're looking for, but it seems like a good starting point.
As for the general thrust of your comment and the article, I agree. It'll be interesting to see what changes come to make things nicer.
- zdimension 4y agoThis one runs the C code as a program, so the code doesn't really communicate. I made a proof of concept some time ago of a macro that really translates C to Rust at compile time: https://github.com/zdimension/embed-c https://github.com/zdimension/embed-c