The documentation for the FFI seems focused on using C code in a
program whose main() is in Rust. Can Rust  be used for implementing a
shared library that implements a C ABI for use by programs whose
main() is not in Rust (i.e. the caller sees a C ABI and doesn't know
about Rust)? If yes, can a C program use multiple such libraries so
that their Rust runtime bits don't conflict? Is there a tool for
generating .h files for C-callable Rust functions and their argument
data types?

-- 
Henri Sivonen
hsivo...@hsivonen.fi
https://hsivonen.fi/
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to