Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
acp: update to v0.4 of Rust library (#38336)
Ben Brandt52521efc7b89
diff --git a/Cargo.lock b/Cargo.lockindex 298ef0a4b26..6de762f43b3 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -195,12 +195,13 @@ dependencies = [[[package]]name = "agent-client-protocol"-version = "0.2.1"+version = "0.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "003fb91bf1b8d6e15f72c45fb9171839af8241e81e3839fbb73536af113b7a79"+checksum = "cc2526e80463b9742afed4829aedd6ae5632d6db778c6cc1fecb80c960c3521b"dependencies = ["anyhow","async-broadcast",+ "async-trait","futures 0.3.31","log","parking_lot",@@ -293,6 +294,7 @@ dependencies = ["agent-client-protocol","agent_settings","anyhow",+ "async-trait","client","collections","env_logger 0.11.8",@@ -2190,7 +2192,7 @@ dependencies = ["bitflags 2.9.0","cexpr","clang-sys",- "itertools 0.11.0",+ "itertools 0.12.1","lazy_static","lazycell","log",@@ -13225,7 +13227,7 @@ checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4"dependencies = ["bytes 1.10.1","heck 0.5.0",- "itertools 0.11.0",+ "itertools 0.12.1","log","multimap","once_cell",@@ -13258,7 +13260,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1"dependencies = ["anyhow",- "itertools 0.11.0",+ "itertools 0.12.1","proc-macro2","quote","syn 2.0.101",@@ -20622,7 +20624,7 @@ dependencies = ["idna","indexmap","inout",- "itertools 0.11.0",+ "itertools 0.12.1","itertools 0.13.0","jiff","lazy_static",diff --git a/Cargo.toml b/Cargo.tomlindex e69885a835f..96a1fc588f0 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -437,7 +437,7 @@ zlog_settings = { path = "crates/zlog_settings" }# External crates#-agent-client-protocol = { version = "0.2.1", features = ["unstable"] }+agent-client-protocol = { version = "0.4.0", features = ["unstable"] }aho-corasick = "1.1"alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" }any_vec = "0.14"diff --git a/crates/agent_servers/Cargo.toml b/crates/agent_servers/Cargo.tomlindex a168da05c83..ca6db6c663d 100644--- a/crates/agent_servers/Cargo.toml+++ b/crates/agent_servers/Cargo.toml@@ -23,6 +23,7 @@ action_log.workspace = trueagent-client-protocol.workspace = trueagent_settings.workspace = trueanyhow.workspace = true+async-trait.workspace = trueclient.workspace = truecollections.workspace = trueenv_logger = { workspace = true, optional = true }diff --git a/crates/agent_servers/src/acp.rs b/crates/agent_servers/src/acp.rsindex cc897d85e7b..b8c75a01a2e 100644--- a/crates/agent_servers/src/acp.rs+++ b/crates/agent_servers/src/acp.rs@@ -13,7 +13,7 @@ use util::ResultExt as _;use std::path::PathBuf;use std::{any::Any, cell::RefCell};-use std::{path::Path, rc::Rc, sync::Arc};+use std::{path::Path, rc::Rc};use thiserror::Error;use anyhow::{Context as _, Result};@@ -505,6 +505,7 @@ struct ClientDelegate {cx: AsyncApp,}+#[async_trait::async_trait(?Send)]impl acp::Client for ClientDelegate {async fn request_permission(&self,@@ -638,19 +639,11 @@ impl acp::Client for ClientDelegate {Ok(Default::default())}- async fn ext_method(- &self,- _name: Arc<str>,- _params: Arc<serde_json::value::RawValue>,- ) -> Result<Arc<serde_json::value::RawValue>, acp::Error> {+ async fn ext_method(&self, _args: acp::ExtRequest) -> Result<acp::ExtResponse, acp::Error> {Err(acp::Error::method_not_found())}- async fn ext_notification(- &self,- _name: Arc<str>,- _params: Arc<serde_json::value::RawValue>,- ) -> Result<(), acp::Error> {+ async fn ext_notification(&self, _args: acp::ExtNotification) -> Result<(), acp::Error> {Err(acp::Error::method_not_found())}diff --git a/tooling/workspace-hack/Cargo.toml b/tooling/workspace-hack/Cargo.tomlindex a01989a047c..ec9629685d8 100644--- a/tooling/workspace-hack/Cargo.toml+++ b/tooling/workspace-hack/Cargo.toml@@ -75,6 +75,7 @@ hmac = { version = "0.12", default-features = false, features = ["reset"] }hyper = { version = "0.14", features = ["client", "http1", "http2", "runtime", "server", "stream"] }idna = { version = "1" }indexmap = { version = "2", features = ["serde"] }+itertools-5ef9efb8ec2df382 = { package = "itertools", version = "0.12" }jiff = { version = "0.2" }lazy_static = { version = "1", default-features = false, features = ["spin_no_std"] }libc = { version = "0.2", features = ["extra_traits"] }@@ -213,6 +214,7 @@ hyper = { version = "0.14", features = ["client", "http1", "http2", "runtime", "idna = { version = "1" }indexmap = { version = "2", features = ["serde"] }itertools-594e8ee84c453af0 = { package = "itertools", version = "0.13" }+itertools-5ef9efb8ec2df382 = { package = "itertools", version = "0.12" }jiff = { version = "0.2" }lazy_static = { version = "1", default-features = false, features = ["spin_no_std"] }libc = { version = "0.2", features = ["extra_traits"] }@@ -333,7 +335,6 @@ foldhash = { version = "0.1", default-features = false, features = ["std"] }getrandom-468e82937335b1c9 = { package = "getrandom", version = "0.3", default-features = false, features = ["std"] }gimli = { version = "0.31", default-features = false, features = ["read", "std", "write"] }hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "http2", "native-tokio", "ring", "tls12"] }-itertools-a6292c17cd707f01 = { package = "itertools", version = "0.11" }livekit-runtime = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "5f04705ac3f356350ae31534ffbc476abc9ea83d" }naga = { version = "25", features = ["msl-out", "wgsl-in"] }nix-b73a96c0a5f6a7d9 = { package = "nix", version = "0.29", features = ["fs", "pthread", "signal", "user"] }@@ -395,7 +396,6 @@ foldhash = { version = "0.1", default-features = false, features = ["std"] }getrandom-468e82937335b1c9 = { package = "getrandom", version = "0.3", default-features = false, features = ["std"] }gimli = { version = "0.31", default-features = false, features = ["read", "std", "write"] }hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "http2", "native-tokio", "ring", "tls12"] }-itertools-a6292c17cd707f01 = { package = "itertools", version = "0.11" }livekit-runtime = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "5f04705ac3f356350ae31534ffbc476abc9ea83d" }naga = { version = "25", features = ["msl-out", "wgsl-in"] }nix-b73a96c0a5f6a7d9 = { package = "nix", version = "0.29", features = ["fs", "pthread", "signal", "user"] }@@ -474,7 +474,6 @@ getrandom-6f8ce4dd05d13bba = { package = "getrandom", version = "0.2", default-fgimli = { version = "0.31", default-features = false, features = ["read", "std", "write"] }hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "http2", "native-tokio", "ring", "tls12"] }inout = { version = "0.1", default-features = false, features = ["block-padding"] }-itertools-a6292c17cd707f01 = { package = "itertools", version = "0.11" }linux-raw-sys-274715c4dabd11b0 = { package = "linux-raw-sys", version = "0.9", default-features = false, features = ["elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "xdp"] }linux-raw-sys-9fbad63c4bcf4a8f = { package = "linux-raw-sys", version = "0.4", default-features = false, features = ["elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "system", "xdp"] }livekit-runtime = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "5f04705ac3f356350ae31534ffbc476abc9ea83d" }@@ -555,7 +554,6 @@ getrandom-6f8ce4dd05d13bba = { package = "getrandom", version = "0.2", default-fgimli = { version = "0.31", default-features = false, features = ["read", "std", "write"] }hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "http2", "native-tokio", "ring", "tls12"] }inout = { version = "0.1", default-features = false, features = ["block-padding"] }-itertools-a6292c17cd707f01 = { package = "itertools", version = "0.11" }linux-raw-sys-274715c4dabd11b0 = { package = "linux-raw-sys", version = "0.9", default-features = false, features = ["elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "xdp"] }linux-raw-sys-9fbad63c4bcf4a8f = { package = "linux-raw-sys", version = "0.4", default-features = false, features = ["elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "system", "xdp"] }livekit-runtime = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "5f04705ac3f356350ae31534ffbc476abc9ea83d" }@@ -614,7 +612,6 @@ foldhash = { version = "0.1", default-features = false, features = ["std"] }getrandom-468e82937335b1c9 = { package = "getrandom", version = "0.3", default-features = false, features = ["std"] }getrandom-6f8ce4dd05d13bba = { package = "getrandom", version = "0.2", default-features = false, features = ["js", "rdrand"] }hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "http2", "native-tokio", "ring", "tls12"] }-itertools-a6292c17cd707f01 = { package = "itertools", version = "0.11" }livekit-runtime = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "5f04705ac3f356350ae31534ffbc476abc9ea83d" }num = { version = "0.4" }proc-macro2 = { version = "1", default-features = false, features = ["span-locations"] }@@ -690,7 +687,6 @@ getrandom-6f8ce4dd05d13bba = { package = "getrandom", version = "0.2", default-fgimli = { version = "0.31", default-features = false, features = ["read", "std", "write"] }hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "http2", "native-tokio", "ring", "tls12"] }inout = { version = "0.1", default-features = false, features = ["block-padding"] }-itertools-a6292c17cd707f01 = { package = "itertools", version = "0.11" }linux-raw-sys-274715c4dabd11b0 = { package = "linux-raw-sys", version = "0.9", default-features = false, features = ["elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "xdp"] }linux-raw-sys-9fbad63c4bcf4a8f = { package = "linux-raw-sys", version = "0.4", default-features = false, features = ["elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "system", "xdp"] }livekit-runtime = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "5f04705ac3f356350ae31534ffbc476abc9ea83d" }