diff --git a/Cargo.toml b/Cargo.toml index f1448bf..8eba619 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,5 +25,5 @@ tracing-subscriber = "0.3.19" rand = "0.8.5" [build-dependencies] -bindgen = { version="0.71.1", default-features=true} +bindgen = { version="0.71.1", default-features=false, features=["runtime", "which-rustfmt"]} cc = "1.2.10" diff --git a/build.rs b/build.rs index a94ae8a..2a1ba0a 100644 --- a/build.rs +++ b/build.rs @@ -22,6 +22,7 @@ fn main() { .header("wrapper.h") .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .allowlist_function("ikcp_.*") + .use_core() .generate() .expect("Unable to generate bindings");