Merge pull request #144 from oyyd/build-derive-default

chore: make bindgen::Builder derive default
This commit is contained in:
LongYinan 2020-08-24 20:44:50 +08:00 committed by GitHub
commit a480af611e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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_).+")