Update bindgen from 0.70.1 -> 0.71.1.
This commit is contained in:
parent
eefc7b7265
commit
4ea82a2e1b
|
|
@ -23,7 +23,7 @@ boring-sys = { version = "4.16.0", path = "./boring-sys" }
|
||||||
boring = { version = "4.16.0", path = "./boring" }
|
boring = { version = "4.16.0", path = "./boring" }
|
||||||
tokio-boring = { version = "4.16.0", path = "./tokio-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"
|
bytes = "1"
|
||||||
cmake = "0.1.18"
|
cmake = "0.1.18"
|
||||||
fs_extra = "1.3.0"
|
fs_extra = "1.3.0"
|
||||||
|
|
|
||||||
|
|
@ -724,9 +724,12 @@ fn main() {
|
||||||
// bindgen 0.70 replaced the run-time layout tests with compile-time ones,
|
// 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.
|
// but they depend on std::mem::offset_of, stabilized in 1.77.
|
||||||
let supports_layout_tests = autocfg::new().probe_rustc_version(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()
|
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_copy(true)
|
||||||
.derive_debug(true)
|
.derive_debug(true)
|
||||||
.derive_default(true)
|
.derive_default(true)
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use std::os::raw::{c_char, c_int, c_uint, c_ulong};
|
||||||
#[allow(
|
#[allow(
|
||||||
clippy::useless_transmute,
|
clippy::useless_transmute,
|
||||||
clippy::derive_partial_eq_without_eq,
|
clippy::derive_partial_eq_without_eq,
|
||||||
|
clippy::ptr_offset_with_cast,
|
||||||
dead_code
|
dead_code
|
||||||
)]
|
)]
|
||||||
mod generated {
|
mod generated {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue