From 3bdb8c543b0908683b9c38fa4b95864a33000f1b Mon Sep 17 00:00:00 2001 From: Ouyang Yadong Date: Mon, 24 Aug 2020 20:19:47 +0800 Subject: [PATCH] chore: make bindgen::Builder derive default --- sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/build.rs b/sys/build.rs index e09e17a8..85d4d948 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -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_).+")