new: 暂时移除cbindgen (#82)

This commit is contained in:
login
2022-11-12 15:25:54 +08:00
committed by GitHub
parent 2aaf7808ef
commit 82d2e446a4
10 changed files with 42 additions and 14 deletions

View File

@ -23,6 +23,7 @@ fn main() {
// The input header we would like to generate
// bindings for.
.header("src/include/bindings/wrapper.h")
.blocklist_file("src/include/bindings/bindings.h")
.clang_arg("--target=x86_64-none-none")
.clang_arg("-v")
// 使用core并将c语言的类型改为core::ffi而不是使用std库。
@ -41,8 +42,4 @@ fn main() {
.write_to_file(out_path.join("bindings.rs"))
.expect("Couldn't write bindings!");
}
cbindgen::generate(crate_dir)
.unwrap()
.write_to_file(out_path.join("bindings.h"));
}