mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Start playing with cbindgen
This commit is contained in:
@@ -32,4 +32,9 @@ fn main() {
|
||||
.unwrap()
|
||||
.write_all(pkg_config.as_bytes())
|
||||
.unwrap();
|
||||
|
||||
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
|
||||
cbindgen::generate(crate_dir)
|
||||
.expect("Unable to generate header file")
|
||||
.write_to_file("bindings.h");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user