Update bindgen from 0.70.1 -> 0.71.1.

This commit is contained in:
Yury Yarashevich 2025-05-14 12:29:33 +02:00 committed by Kornel
parent eefc7b7265
commit 4ea82a2e1b
3 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,7 @@ boring-sys = { version = "4.16.0", path = "./boring-sys" }
boring = { version = "4.16.0", path = "./boring" }
tokio-boring = { version = "4.16.0", path = "./tokio-boring" }
bindgen = { version = "0.70.1", default-features = false, features = ["runtime"] }
bindgen = { version = "0.71.1", default-features = false, features = ["runtime"] }
bytes = "1"
cmake = "0.1.18"
fs_extra = "1.3.0"

View File

@ -724,9 +724,12 @@ fn main() {
// bindgen 0.70 replaced the run-time layout tests with compile-time ones,
// but they depend on std::mem::offset_of, stabilized in 1.77.
let supports_layout_tests = autocfg::new().probe_rustc_version(1, 77);
let Ok(target_rust_version) = bindgen::RustTarget::stable(68, 0) else {
panic!("bindgen does not recognize target rust version");
};
let mut builder = bindgen::Builder::default()
.rust_target(bindgen::RustTarget::Stable_1_68) // bindgen MSRV is 1.70, so this is enough
.rust_target(target_rust_version) // bindgen MSRV is 1.70, so this is enough
.derive_copy(true)
.derive_debug(true)
.derive_default(true)

View File

@ -19,6 +19,7 @@ use std::os::raw::{c_char, c_int, c_uint, c_ulong};
#[allow(
clippy::useless_transmute,
clippy::derive_partial_eq_without_eq,
clippy::ptr_offset_with_cast,
dead_code
)]
mod generated {