Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Update Rust crate bindgen to 0.70.0 (#17024)

renovate[bot]5d5ae1ec6f0b
diff --git a/Cargo.lock b/Cargo.lock
index 36f54fc9bd4..aa685d23701 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 e61362b77e5..d66f10fa171 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 56fca5f7e85..8fd811c9bc5 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 de26ac1203d..92940d1c526 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 ad6032ad41d..75639e30b43 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");