From 6aefa52b5270b0c95419d1550e52bd6fa42a3695 Mon Sep 17 00:00:00 2001 From: Jan Michael Auer Date: Thu, 5 Sep 2024 10:57:45 +0200 Subject: [PATCH] build: Update bindgen to 0.70.1 (#3991) --- Cargo.lock | 47 +++++++++++++++----------------------------- Cargo.toml | 2 +- relay-crash/build.rs | 2 +- 3 files changed, 18 insertions(+), 33 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 39cc4f43ad..d5ef457b4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -421,24 +421,22 @@ checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bindgen" -version = "0.64.0" +version = "0.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4" +checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.1", "cexpr", "clang-sys", - "lazy_static", - "lazycell", + "itertools", "log", - "peeking_take_while", + "prettyplease", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", - "syn 1.0.109", - "which", + "syn 2.0.77", ] [[package]] @@ -2275,12 +2273,6 @@ dependencies = [ "spin 0.5.2", ] -[[package]] -name = "lazycell" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" - [[package]] name = "libc" version = "0.2.158" @@ -2941,12 +2933,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e91099d4268b0e11973f036e885d652fb0b21fedcf69738c627f94db6a44f42" -[[package]] -name = "peeking_take_while" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" - [[package]] name = "pem-rfc7468" version = "0.7.0" @@ -3126,6 +3112,16 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6fa0831dd7cc608c38a5e323422a0077678fa5744aa2be4ad91c4ece8eec8d5" +[[package]] +name = "prettyplease" +version = "0.2.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479cf940fbbb3426c32c5d5176f62ad57549a0bb84773423ba8be9d089f5faba" +dependencies = [ + "proc-macro2", + "syn 2.0.77", +] + [[package]] name = "priority-queue" version = "2.0.3" @@ -5897,17 +5893,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "which" -version = "4.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2441c784c52b289a054b7201fc93253e288f094e2f4be9058343127c4226a269" -dependencies = [ - "either", - "libc", - "once_cell", -] - [[package]] name = "whoami" version = "1.5.1" diff --git a/Cargo.toml b/Cargo.toml index e3cf1e5e37..f371d3addc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,7 +65,7 @@ axum-extra = "0.9.3" axum-server = "0.7.1" arc-swap = "1.7.1" backoff = "0.4.0" -bindgen = "0.64.0" +bindgen = "0.70.1" brotli = "3.3.4" bytecount = "0.6.0" bytes = "1.4.0" diff --git a/relay-crash/build.rs b/relay-crash/build.rs index b33fe99b4d..f5f14eb90d 100644 --- a/relay-crash/build.rs +++ b/relay-crash/build.rs @@ -41,7 +41,7 @@ fn main() { let bindings = bindgen::Builder::default() .header("sentry-native/include/sentry.h") - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .generate() .expect("Unable to generate bindings");