rustworkx
rustworkx copied to clipboard
Add FFI/C API
To enable interfacing retworkx python objects with other languages directly instead of going through python for better performance we should add a foreign function interface and publish header files.
https://github.com/eqrion/cbindgen/blob/master/docs.md has details on how to do this.
Also: https://michael-f-bryan.github.io/rust-ffi-guide/ is useful
Apparently there is a Rust-to-Rust FFI crate: https://github.com/rodrimati1992/abi_stable_crates/
I haven’t read the details yet but it could be interesting