diff --git a/Cargo.lock b/Cargo.lock index 36f54fc9bd49211e78631d53f901940a68ca3a50..aa685d23701d426da0cdfb22fded0c128ddda7e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1527,39 +1527,36 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.65.1" +version = "0.69.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5" +checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.6.0", "cexpr", "clang-sys", + "itertools 0.12.1", "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" +version = "0.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" +checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f" dependencies = [ "bitflags 2.6.0", "cexpr", "clang-sys", "itertools 0.12.1", - "lazy_static", - "lazycell", + "log", + "prettyplease", "proc-macro2", "quote", "regex", @@ -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 e61362b77e5a87e345a2288777e871d146901e45..d66f10fa1711e0c1d81db062b7615d7f0b406be5 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 56fca5f7e85ac17d52a1a9c6c9eead08df6b48c1..8fd811c9bc52bb57d8e943682a91df7a5622c136 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 de26ac1203dc08cc87ef48ffc44b71cb4cb9320b..92940d1c526e87a1d6d966e84db36e838c7e81a1 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 ad6032ad41d4edf44b1aea9b1c59f120b791534d..75639e30b43b909619f32bdb92b5f75de13cff1f 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");