lssa/wallet-ffi/build.rs
2026-01-21 15:38:50 +01:00

14 lines
388 B
Rust

fn main() {
let crate_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
let config =
cbindgen::Config::from_file("cbindgen.toml").expect("Unable to read cbindgen.toml");
cbindgen::Builder::new()
.with_crate(crate_dir)
.with_config(config)
.generate()
.expect("Unable to generate bindings")
.write_to_file("wallet_ffi.h");
}