Skip to content

Commit b6e36c0

Browse files
committed
Pin bindgen Rust target to current default
Explicitly pin bindgen rust target to the highest stable target currently supported by the current bindgen dependency version, 0.69.*. This value is Rust 1.73.* and is the target that is automatically chosen by bindgen for any Rust version greater than 1.73.*. Since our current lowest supported rust version is 1.74, this target is always the default target. Signed-off-by: mulhern <amulhern@redhat.com>
1 parent b96e535 commit b6e36c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
use bindgen::Builder;
1+
use bindgen::{Builder, RustTarget};
22
use std::{env::var, path::PathBuf};
33

44
fn main() {
55
let bindings = Builder::default()
6+
.rust_target(RustTarget::Stable_1_73)
67
.header_contents("wrapper.h", "#include <linux/loop.h>")
78
.derive_default(true)
89
.generate()

0 commit comments

Comments
 (0)