4 ms·
Tools like bindgen have made exposing C headers to Rust pretty simple and easy to integrate C into Rust projects. I don’t really think it’s that much different
by bluejekyll 8y ago
Tools like bindgen have made exposing C headers to Rust pretty simple and easy to integrate C into Rust projects.
I don’t really think it’s that much different than the C/C++ macro style used for crossing that bridge between the two languages at the end of the day.
- pjmlp 8y agoIt is, there is no bridge as C is a C++ subset, so you can just #include and code away. Naturally that convenience is also the cause of our beloved CVEs.
- bluejekyll 8y agoWhile that’s true in principle, what I was getting at is that often there are CPP macros to make the C <-> C++ bindings more native between the two envs.