Skip to content

Commit 39de906

Browse files
larseggertNot-Nik
authored andcommitted
chore: bindgen@0.72 (#3108)
* chore: `bindgen@0.72` Which is what Gecko now uses. * More clippy allows for generated code
1 parent df106c7 commit 39de906

5 files changed

Lines changed: 36 additions & 7 deletions

File tree

Cargo.lock

Lines changed: 27 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ strum = { version = "0.27", default-features = false, features = ["derive"] }
2121
thiserror = "2.0.12"
2222

2323
[build-dependencies]
24-
# Sync with https://searchfox.org/mozilla-central/source/Cargo.lock 2024-02-08
25-
bindgen = { version = "0.69", default-features = false, features = ["runtime"] }
24+
bindgen = { version = "0.72", default-features = false, features = ["runtime"] }
2625
mozbuild = { version = "0.1", default-features = false, optional = true }
2726
semver = { version = "1.0", default-features = false, features = ["std"] }
2827
serde = { version = "1.0", default-features = false }

src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,13 @@ pub use self::{
9090
mod min_version;
9191
use min_version::MINIMUM_NSS_VERSION;
9292

93-
#[expect(non_snake_case)]
94-
#[expect(non_upper_case_globals)]
9593
pub mod nss_prelude {
94+
#![allow(
95+
non_snake_case,
96+
non_upper_case_globals,
97+
clippy::restriction,
98+
reason = "For included bindgen code."
99+
)]
96100
pub use _SECStatus::*;
97101

98102
pub use crate::prtypes::*;

src/p11.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ mod nss_p11 {
4444
non_snake_case,
4545
non_upper_case_globals,
4646
non_camel_case_types,
47+
unused_qualifications,
4748
clippy::all,
4849
clippy::nursery,
4950
clippy::pedantic,

src/ssl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ mod nss_ssl {
1919
non_upper_case_globals,
2020
non_snake_case,
2121
nonstandard_style,
22+
unused_qualifications,
2223
clippy::all,
2324
clippy::nursery,
2425
clippy::pedantic,

0 commit comments

Comments
 (0)