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.

Force `ashpd` crate to not use `tokio` (#21315)

Kirill Bulatov73f546ea5fcb
diff --git a/Cargo.lock b/Cargo.lock
index fc4de8bd7c9..e046359cc7b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -346,13 +346,14 @@ version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e9c39d707614dbcc6bed00015539f488d8e3fe3e66ed60961efc0c90f4b380b3"
dependencies = [
+ "async-fs 2.1.2",
+ "async-net 2.0.0",
"enumflags2",
"futures-channel",
"futures-util",
"rand 0.8.5",
"serde",
"serde_repr",
- "tokio",
"url",
"zbus 5.1.1",
]
@@ -12796,7 +12797,6 @@ dependencies = [
"signal-hook-registry",
"socket2 0.5.7",
"tokio-macros",
- "tracing",
"windows-sys 0.52.0",
]
@@ -15602,8 +15602,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1162094dc63b1629fcc44150bcceeaa80798cd28bcbe7fa987b65a034c258608"
dependencies = [
"async-broadcast",
+ "async-executor",
+ "async-fs 2.1.2",
+ "async-io 2.4.0",
+ "async-lock 3.4.0",
+ "async-process 2.3.0",
"async-recursion 1.1.1",
+ "async-task",
"async-trait",
+ "blocking",
"enumflags2",
"event-listener 5.3.1",
"futures-core",
@@ -15614,7 +15621,6 @@ dependencies = [
"serde",
"serde_repr",
"static_assertions",
- "tokio",
"tracing",
"uds_windows",
"windows-sys 0.59.0",
diff --git a/Cargo.toml b/Cargo.toml
index 996d41e803b..b50b6d9f9d7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -333,7 +333,7 @@ alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91
any_vec = "0.14"
anyhow = "1.0.86"
arrayvec = { version = "0.7.4", features = ["serde"] }
-ashpd = "0.10.0"
+ashpd = { version = "0.10", default-features = false, features = ["async-std"]}
async-compat = "0.2.1"
async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
async-dispatcher = "0.1"