mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-01 03:19:29 +00:00
15 lines
412 B
Rust
15 lines
412 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
|
|
println!("cargo:rerun-if-changed=src/");
|
|
cbindgen::Builder::new()
|
|
.with_crate(crate_dir)
|
|
.with_language(cbindgen::Language::C)
|
|
.with_cpp_compat(true)
|
|
.with_pragma_once(true)
|
|
.generate()
|
|
.expect("Unable to generate bindings")
|
|
.write_to_file("indexer_ffi.h");
|
|
}
|