From bd3a5e9553f420c091668bdd38ac65b847be0fb4 Mon Sep 17 00:00:00 2001 From: Ian Campbell <52475242+xv-ian-c@users.noreply.github.com> Date: Mon, 19 Aug 2024 08:28:35 +0100 Subject: [PATCH] Bump to bindgen 0.70 https://github.com/rust-lang/rust-bindgen/compare/v0.69.4...v0.70.0 https://github.com/rust-lang/rust-bindgen/blob/main/CHANGELOG.md#0700-2024-08-16 The generated code now triggers a couple of new clippy lints (`unnecessary_operation` and `identity_op`) which we just ignore. --- Cargo.lock | 9 +++------ wolfssl-sys/Cargo.toml | 2 +- wolfssl-sys/src/bindings.rs | 2 ++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ec784e3..f2f4629 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -135,16 +135,14 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.69.4" +version = "0.70.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" +checksum = "e0127a1da21afb5adaae26910922c3f7afd3d329ba1a1b98a0884cab4907a251" dependencies = [ "bitflags", "cexpr", "clang-sys", "itertools", - "lazy_static", - "lazycell", "log", "prettyplease", "proc-macro2", @@ -153,7 +151,6 @@ dependencies = [ "rustc-hash", "shlex", "syn", - "which", ] [[package]] @@ -759,7 +756,7 @@ name = "wolfssl-sys" version = "1.2.0" dependencies = [ "autotools", - "bindgen 0.69.4", + "bindgen 0.70.0", "build-target", "oqs-sys", ] diff --git a/wolfssl-sys/Cargo.toml b/wolfssl-sys/Cargo.toml index 126726c..8af4b64 100644 --- a/wolfssl-sys/Cargo.toml +++ b/wolfssl-sys/Cargo.toml @@ -12,7 +12,7 @@ links = "wolfssl" exclude = ["wolfssl-src/**/*.pdf"] # crates.io has a size limit for publishing. Exclude unused files to keep the size under the limit. [build-dependencies] -bindgen = "0.69" +bindgen = "0.70" autotools = "0.2" build-target = "0.4.0" diff --git a/wolfssl-sys/src/bindings.rs b/wolfssl-sys/src/bindings.rs index e997e44..8e995c4 100644 --- a/wolfssl-sys/src/bindings.rs +++ b/wolfssl-sys/src/bindings.rs @@ -4,4 +4,6 @@ #![allow(non_snake_case)] #![allow(clippy::useless_transmute)] #![allow(clippy::upper_case_acronyms)] +#![allow(clippy::unnecessary_operation)] +#![allow(clippy::identity_op)] include!(concat!(env!("OUT_DIR"), "/bindings.rs"));