chore: make bindgen::Builder derive default

This commit is contained in:
Ouyang Yadong 2020-08-24 20:19:47 +08:00
parent 98ca6a3339
commit 3bdb8c543b

View file

@ -44,6 +44,7 @@ fn main() {
sys_bindigs_path.push("bindings.h");
bindgen::Builder::default()
.derive_default(true)
.header(sys_bindigs_path.to_str().unwrap().to_owned())
.clang_arg(String::from("-I") + node_include_path.to_str().unwrap())
.rustified_enum("(napi_|uv_).+")