Delete old clib items
This commit is contained in:
parent
3ac782fb38
commit
ded1b49068
16
build.rs
16
build.rs
@ -1,16 +0,0 @@
|
|||||||
extern crate cbindgen;
|
|
||||||
|
|
||||||
use std::env;
|
|
||||||
use std::path::Path;
|
|
||||||
use cbindgen::{Config, Builder};
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
let crate_env = env::var("CARGO_MANIFEST_DIR").unwrap();
|
|
||||||
let crate_path = Path::new(&crate_env);
|
|
||||||
let config = Config::from_root_or_default(crate_path);
|
|
||||||
Builder::new().with_crate(crate_path.to_str().unwrap())
|
|
||||||
.with_config(config)
|
|
||||||
.generate()
|
|
||||||
.expect("Cannot generate header file!")
|
|
||||||
.write_to_file("libdla.h");
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user