mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
The main contributors of concrete-cpu are Co-authored-by: Mayeul@Zama <mayeul.debellabre@zama.ai> Co-authored-by: sarah <sarah.elkazdadi@zama.ai>
15 lines
377 B
Rust
15 lines
377 B
Rust
extern crate cbindgen;
|
|
|
|
use std::env;
|
|
|
|
fn main() {
|
|
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
|
|
let package_name = env::var("CARGO_PKG_NAME").unwrap();
|
|
let output_file = format!("include/{package_name}.h");
|
|
println!("cargo:rerun-if-changed={output_file}");
|
|
|
|
cbindgen::generate(crate_dir)
|
|
.unwrap()
|
|
.write_to_file(output_file);
|
|
}
|