Originally posted by kpedersen
View Post
And yes, there's a difference between C the language and C the lowest common denominator ubiquitous platform ABI (I think VMS is one of the rare exceptions with a language-independent platform ABI, but of course that's mostly irrelevant nowadays).
Rust doesn't itself consume C headers, but there are projects like bindgen that can automagically produce Rust bindings for C (and some limited C++ subset) libraries (bindgen uses libclang, so it has a "real" C/C++ parser). Is it as convenient as using C or C++ directly? Obviously not, and there are certainly many cases where C or C++ is the better choice, but OTOH you gain a much better language to make up for the trouble and in many other cases that might well be worth it.
Comment