4 ms·
What's the use case for this? Are native C binaries/libraries not invokable in rust?
by mankash666 8y ago
What's the use case for this? Are native C binaries/libraries not invokable in rust?
- civilitty 8y agoYes, you can call any C using the Rust FFI but then you need to create a safe wrapper around the unsafe Rust calls to C. This tool looks like it's for generating a first pass at porting existing C code to Rust. Once you have that C-to-Rust conversion, it becomes much easier because you can incrementally port select types instead of incrementally porting the API and dealing with the impedance mismatch between the Rust api and C api (you can work on function arguments instead of function calls).