This folder includes FFI bindings for rust/serde.
- https://github.com/eqrion/cbindgen/blob/master/docs.md
- https://gist.github.com/zbraniecki/b251714d77ffebbc73c03447f2b2c69f
- https://michael-f-bryan.github.io/rust-ffi-guide/setting_up.html
- Generating cbindgen output
- Install dependencies with
brew install cbindgenorapt-get install cbindgenorcargo install cbindgenor the equivalent: we usedcargo install --version 0.23.0 cbindgen. - Go to the directory where this README.md file is located
- Generate with
cbindgen --config cbindgen.toml --crate serde-benchmark --output serde_benchmark.h
- Install dependencies with
- Building
- Run with
cargo build --release
- Run with