Files
lez-programs/modules/token/ffi/build.rs
T

10 lines
353 B
Rust
Raw Normal View History

2026-08-19 01:36:02 -03:00
fn main() {
let crate_dir =
std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR is set by cargo");
cbindgen::generate(&crate_dir)
.expect("cbindgen")
.write_to_file(format!("{crate_dir}/include/token_ffi.h"));
println!("cargo:rerun-if-changed=src");
println!("cargo:rerun-if-changed=cbindgen.toml");
}