diff --git a/Cargo.lock b/Cargo.lock index 36f54fc9bd..aa685d2370 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1525,29 +1525,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bindgen" -version = "0.65.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5" -dependencies = [ - "bitflags 1.3.2", - "cexpr", - "clang-sys", - "lazy_static", - "lazycell", - "log", - "peeking_take_while", - "prettyplease", - "proc-macro2", - "quote", - "regex", - "rustc-hash", - "shlex", - "syn 2.0.72", - "which 4.4.2", -] - [[package]] name = "bindgen" version = "0.69.4" @@ -1568,6 +1545,26 @@ dependencies = [ "syn 2.0.72", ] +[[package]] +name = "bindgen" +version = "0.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f" +dependencies = [ + "bitflags 2.6.0", + "cexpr", + "clang-sys", + "itertools 0.12.1", + "log", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash", + "shlex", + "syn 2.0.72", +] + [[package]] name = "bit-set" version = "0.5.3" @@ -4944,7 +4941,7 @@ dependencies = [ "ashpd", "async-task", "backtrace", - "bindgen 0.65.1", + "bindgen 0.70.1", "blade-graphics", "blade-macros", "blade-util", @@ -6783,7 +6780,7 @@ name = "media" version = "0.1.0" dependencies = [ "anyhow", - "bindgen 0.65.1", + "bindgen 0.70.1", "core-foundation 0.9.4", "foreign-types 0.5.0", "metal", @@ -7835,12 +7832,6 @@ dependencies = [ "hmac", ] -[[package]] -name = "peeking_take_while" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" - [[package]] name = "pem" version = "3.0.4" diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index e61362b77e..d66f10fa17 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -85,7 +85,7 @@ unicode-segmentation.workspace = true embed-resource = "2.4" [target.'cfg(target_os = "macos")'.build-dependencies] -bindgen = "0.65.1" +bindgen = "0.70.0" cbindgen = { version = "0.27.0", default-features = false } [target.'cfg(target_os = "macos")'.dependencies] diff --git a/crates/gpui/build.rs b/crates/gpui/build.rs index 56fca5f7e8..8fd811c9bc 100644 --- a/crates/gpui/build.rs +++ b/crates/gpui/build.rs @@ -67,7 +67,7 @@ mod macos { .allowlist_function("dispatch_suspend") .allowlist_function("dispatch_source_cancel") .allowlist_function("dispatch_set_context") - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .layout_tests(false) .generate() .expect("unable to generate bindings"); diff --git a/crates/media/Cargo.toml b/crates/media/Cargo.toml index de26ac1203..92940d1c52 100644 --- a/crates/media/Cargo.toml +++ b/crates/media/Cargo.toml @@ -22,4 +22,4 @@ metal = "0.29" objc = "0.2" [build-dependencies] -bindgen = "0.65.1" +bindgen = "0.70.0" diff --git a/crates/media/build.rs b/crates/media/build.rs index ad6032ad41..75639e30b4 100644 --- a/crates/media/build.rs +++ b/crates/media/build.rs @@ -28,7 +28,7 @@ fn main() { .allowlist_var("kCMVideoCodecType_.*") .allowlist_var("kCMTime.*") .allowlist_var("kCMSampleAttachmentKey_.*") - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .layout_tests(false) .generate() .expect("unable to generate bindings");