chore: make bindgen::Builder derive default
This commit is contained in:
parent
98ca6a3339
commit
3bdb8c543b
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ fn main() {
|
||||||
sys_bindigs_path.push("bindings.h");
|
sys_bindigs_path.push("bindings.h");
|
||||||
|
|
||||||
bindgen::Builder::default()
|
bindgen::Builder::default()
|
||||||
|
.derive_default(true)
|
||||||
.header(sys_bindigs_path.to_str().unwrap().to_owned())
|
.header(sys_bindigs_path.to_str().unwrap().to_owned())
|
||||||
.clang_arg(String::from("-I") + node_include_path.to_str().unwrap())
|
.clang_arg(String::from("-I") + node_include_path.to_str().unwrap())
|
||||||
.rustified_enum("(napi_|uv_).+")
|
.rustified_enum("(napi_|uv_).+")
|
||||||
|
|
Loading…
Reference in a new issue