rustworkx icon indicating copy to clipboard operation
rustworkx copied to clipboard

Add FFI/C API

Open mtreinish opened this issue 5 years ago • 3 comments

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.

mtreinish avatar Feb 26 '20 21:02 mtreinish

https://github.com/eqrion/cbindgen/blob/master/docs.md has details on how to do this.

mtreinish avatar Feb 28 '20 10:02 mtreinish

Also: https://michael-f-bryan.github.io/rust-ffi-guide/ is useful

mtreinish avatar Feb 28 '20 10:02 mtreinish

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

IvanIsCoding avatar Feb 03 '23 01:02 IvanIsCoding