We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bindgen
rust-version
1 parent cad8320 commit 108ef39Copy full SHA for 108ef39
Cargo.toml
@@ -14,7 +14,7 @@ authors = [
14
]
15
license = "BSD-2-Clause"
16
edition = "2021"
17
-rust-version = "1.82"
+rust-version = "1.82" # first stable release to support "unsafe extern"
18
build = "build.rs"
19
links = "bpf"
20
exclude = [
build.rs
@@ -58,6 +58,7 @@ fn generate_bindings(src_dir: path::PathBuf) {
58
&path::PathBuf::from(env::var_os("OUT_DIR").expect("OUT_DIR should always be set"));
59
60
bindgen::Builder::default()
61
+ .rust_target(env!("CARGO_PKG_RUST_VERSION").parse().expect("valid"))
62
.derive_default(true)
63
.explicit_padding(true)
64
.default_enum_style(bindgen::EnumVariation::Consts)
0 commit comments