A cargo subcommand to be used as a pre-processor to various FFI generation libs from a rust crate. Currently support:
- cxx: generate
cxx::bridge
from the public APIs.
Use the /// extern_fn:skip
like an attribute to skip items.
This tool is very much a work and progress and it is expected to polish the FFI boundaries by hand afterwards.
cargo install cargo-extern-fn
cargo extern-fn --dir [SRC_DIR] && cargo fmt