3 ms·
You can link a Rust library to a C/C++ binary and you can link a C/C++ library to a Rust binary. https://doc.rust-lang.org/nomicon/ffi.html https://doc.rust-lan
by mlindner 7y ago
You can link a Rust library to a C/C++ binary and you can link a C/C++ library to a Rust binary. https://doc.rust-lang.org/nomicon/ffi.html https://doc.rust-lang.org/nomicon/ffi.html
Notably you need to use the C ABI to call things from C++ as Rust FFI doesn't support C++ directly.