Use a workspace dependency for the futures crate

Max Brunsfeld created

Change summary

Cargo.toml                           | 1 +
crates/activity_indicator/Cargo.toml | 2 +-
crates/call/Cargo.toml               | 2 +-
crates/client/Cargo.toml             | 2 +-
crates/collab/Cargo.toml             | 2 +-
crates/collab_ui/Cargo.toml          | 2 +-
crates/copilot/Cargo.toml            | 2 +-
crates/copilot_button/Cargo.toml     | 2 +-
crates/editor/Cargo.toml             | 2 +-
crates/feedback/Cargo.toml           | 2 +-
crates/fs/Cargo.toml                 | 2 +-
crates/git/Cargo.toml                | 2 +-
crates/gpui/Cargo.toml               | 2 +-
crates/language/Cargo.toml           | 2 +-
crates/live_kit_client/Cargo.toml    | 4 ++--
crates/live_kit_server/Cargo.toml    | 2 +-
crates/lsp/Cargo.toml                | 2 +-
crates/node_runtime/Cargo.toml       | 2 +-
crates/project/Cargo.toml            | 2 +-
crates/project_panel/Cargo.toml      | 2 +-
crates/project_symbols/Cargo.toml    | 2 +-
crates/rpc/Cargo.toml                | 2 +-
crates/search/Cargo.toml             | 2 +-
crates/settings/Cargo.toml           | 2 +-
crates/sqlez/Cargo.toml              | 4 ++--
crates/terminal/Cargo.toml           | 2 +-
crates/terminal_view/Cargo.toml      | 2 +-
crates/util/Cargo.toml               | 2 +-
crates/workspace/Cargo.toml          | 2 +-
crates/zed/Cargo.toml                | 2 +-
30 files changed, 32 insertions(+), 31 deletions(-)

Detailed changes

Cargo.toml 🔗

@@ -77,6 +77,7 @@ serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
 rand = { version = "0.8" }
 postage = { version = "0.5", features = ["futures-traits"] }
 smallvec = { version = "1.6", features = ["union"] }
+futures = { version = "0.3" }
 
 [patch.crates-io]
 tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "c51896d32dcc11a38e41f36e3deb1a6a9c4f4b14" }

crates/activity_indicator/Cargo.toml 🔗

@@ -17,5 +17,5 @@ project = { path = "../project" }
 settings = { path = "../settings" }
 util = { path = "../util" }
 workspace = { path = "../workspace" }
-futures = "0.3"
+futures = { workspace = true }
 smallvec = { workspace = true }

crates/call/Cargo.toml 🔗

@@ -33,7 +33,7 @@ util = { path = "../util" }
 
 anyhow = "1.0.38"
 async-broadcast = "0.4"
-futures = "0.3"
+futures = { workspace = true }
 postage = { workspace = true }
 
 [dev-dependencies]

crates/client/Cargo.toml 🔗

@@ -22,7 +22,7 @@ sum_tree = { path = "../sum_tree" }
 anyhow = "1.0.38"
 async-recursion = "0.3"
 async-tungstenite = { version = "0.16", features = ["async-tls"] }
-futures = "0.3"
+futures = { workspace = true }
 image = "0.23"
 lazy_static = "1.4.0"
 log = { version = "0.4.16", features = ["kv_unstable_serde"] }

crates/collab/Cargo.toml 🔗

@@ -27,7 +27,7 @@ base64 = "0.13"
 clap = { version = "3.1", features = ["derive"], optional = true }
 dashmap = "5.4"
 envy = "0.4.2"
-futures = "0.3"
+futures = { workspace = true }
 hyper = "0.14"
 lazy_static = "1.4"
 lipsum = { version = "0.8", optional = true }

crates/collab_ui/Cargo.toml 🔗

@@ -40,7 +40,7 @@ theme = { path = "../theme" }
 util = { path = "../util" }
 workspace = { path = "../workspace" }
 anyhow = "1.0"
-futures = "0.3"
+futures = { workspace = true }
 log = "0.4"
 postage = { workspace = true }
 serde = { workspace = true }

crates/copilot/Cargo.toml 🔗

@@ -35,7 +35,7 @@ log = "0.4"
 serde = { workspace = true }
 serde_derive = { workspace = true }
 smol = "1.2.5"
-futures = "0.3"
+futures = { workspace = true }
 
 [dev-dependencies]
 clock = { path = "../clock" }

crates/copilot_button/Cargo.toml 🔗

@@ -19,4 +19,4 @@ util = { path = "../util" }
 workspace = { path = "../workspace" }
 anyhow = "1.0"
 smol = "1.2.5"
-futures = "0.3"
+futures = { workspace = true }

crates/editor/Cargo.toml 🔗

@@ -47,7 +47,7 @@ workspace = { path = "../workspace" }
 
 aho-corasick = "0.7"
 anyhow = "1.0"
-futures = "0.3"
+futures = { workspace = true }
 indoc = "1.0.4"
 itertools = "0.10"
 lazy_static = "1.4"

crates/feedback/Cargo.toml 🔗

@@ -16,7 +16,7 @@ client = { path = "../client" }
 editor = { path = "../editor" }
 language = { path = "../language" }
 log = "0.4"
-futures = "0.3"
+futures = { workspace = true }
 gpui = { path = "../gpui" }
 human_bytes = "0.4.1"
 isahc = "1.7"

crates/fs/Cargo.toml 🔗

@@ -15,7 +15,7 @@ rope = { path = "../rope" }
 util = { path = "../util" }
 anyhow = "1.0.57"
 async-trait = "0.1"
-futures = "0.3"
+futures = { workspace = true }
 tempfile = "3"
 fsevent = { path = "../fsevent" }
 lazy_static = "1.4.0"

crates/git/Cargo.toml 🔗

@@ -19,7 +19,7 @@ log = { version = "0.4.16", features = ["kv_unstable_serde"] }
 smol = "1.2"
 parking_lot = "0.11.1"
 async-trait = "0.1"
-futures = "0.3"
+futures = { workspace = true }
 git2 = { version = "0.15", default-features = false }
 
 [dev-dependencies]

crates/gpui/Cargo.toml 🔗

@@ -25,7 +25,7 @@ ctor = "0.1"
 dhat = { version = "0.3", optional = true }
 env_logger = { version = "0.9", optional = true }
 etagere = "0.2"
-futures = "0.3"
+futures = { workspace = true }
 image = "0.23"
 itertools = "0.10"
 lazy_static = "1.4.0"

crates/language/Cargo.toml 🔗

@@ -39,7 +39,7 @@ util = { path = "../util" }
 anyhow = "1.0.38"
 async-broadcast = "0.4"
 async-trait = "0.1"
-futures = "0.3"
+futures = { workspace = true }
 lazy_static = "1.4"
 log = { version = "0.4.16", features = ["kv_unstable_serde"] }
 parking_lot = "0.11.1"

crates/live_kit_client/Cargo.toml 🔗

@@ -32,7 +32,7 @@ anyhow = "1.0.38"
 async-broadcast = "0.4"
 core-foundation = "0.9.3"
 core-graphics = "0.22.3"
-futures = "0.3"
+futures = { workspace = true }
 log = { version = "0.4.16", features = ["kv_unstable_serde"] }
 parking_lot = "0.11.1"
 postage = { workspace = true }
@@ -56,7 +56,7 @@ cocoa = "0.24"
 core-foundation = "0.9.3"
 core-graphics = "0.22.3"
 foreign-types = "0.3"
-futures = "0.3"
+futures = { workspace = true }
 hmac = "0.12"
 jwt = "0.16"
 lazy_static = "1.4"

crates/live_kit_server/Cargo.toml 🔗

@@ -12,7 +12,7 @@ doctest = false
 [dependencies]
 anyhow = "1.0.38"
 async-trait = "0.1"
-futures = "0.3"
+futures = { workspace = true }
 hmac = "0.12"
 log = "0.4"
 jwt = "0.16"

crates/lsp/Cargo.toml 🔗

@@ -17,7 +17,7 @@ gpui = { path = "../gpui" }
 util = { path = "../util" }
 anyhow = "1.0"
 async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553", optional = true }
-futures = "0.3"
+futures = { workspace = true }
 log = { version = "0.4.16", features = ["kv_unstable_serde"] }
 lsp-types = "0.91"
 parking_lot = "0.11"

crates/node_runtime/Cargo.toml 🔗

@@ -13,7 +13,7 @@ gpui = { path = "../gpui" }
 util = { path = "../util" }
 async-compression = { version = "0.3", features = ["gzip", "futures-bufread"] }
 async-tar = "0.4.2"
-futures = "0.3"
+futures = { workspace = true }
 anyhow = "1.0.38"
 parking_lot = "0.11.1"
 serde = { workspace = true }

crates/project/Cargo.toml 🔗

@@ -41,7 +41,7 @@ aho-corasick = "0.7"
 anyhow = "1.0.57"
 async-trait = "0.1"
 backtrace = "0.3"
-futures = "0.3"
+futures = { workspace = true }
 ignore = "0.4"
 lazy_static = "1.4.0"
 log = { version = "0.4.16", features = ["kv_unstable_serde"] }

crates/project_panel/Cargo.toml 🔗

@@ -20,7 +20,7 @@ theme = { path = "../theme" }
 util = { path = "../util" }
 workspace = { path = "../workspace" }
 postage = { workspace = true }
-futures = "0.3"
+futures = { workspace = true }
 unicase = "2.6"
 
 [dev-dependencies]

crates/project_symbols/Cargo.toml 🔗

@@ -24,7 +24,7 @@ postage = { workspace = true }
 smol = "1.2"
 
 [dev-dependencies]
-futures = "0.3"
+futures = { workspace = true }
 settings = { path = "../settings", features = ["test-support"] }
 gpui = { path = "../gpui", features = ["test-support"] }
 language = { path = "../language", features = ["test-support"] }

crates/rpc/Cargo.toml 🔗

@@ -21,7 +21,7 @@ anyhow = "1.0"
 async-lock = "2.4"
 async-tungstenite = "0.16"
 base64 = "0.13"
-futures = "0.3"
+futures = { workspace = true }
 parking_lot = "0.11.1"
 prost = "0.8"
 rand = "0.8"

crates/search/Cargo.toml 🔗

@@ -20,7 +20,7 @@ theme = { path = "../theme" }
 util = { path = "../util" }
 workspace = { path = "../workspace" }
 anyhow = "1.0"
-futures = "0.3"
+futures = { workspace = true }
 log = { version = "0.4.16", features = ["kv_unstable_serde"] }
 postage = { workspace = true }
 serde = { workspace = true }

crates/settings/Cargo.toml 🔗

@@ -18,7 +18,7 @@ gpui = { path = "../gpui" }
 sqlez = { path = "../sqlez" }
 fs = { path = "../fs" }
 anyhow = "1.0.38"
-futures = "0.3"
+futures = { workspace = true }
 theme = { path = "../theme" }
 staff_mode = { path = "../staff_mode" }
 util = { path = "../util" }

crates/sqlez/Cargo.toml 🔗

@@ -14,5 +14,5 @@ smol = "1.2"
 thread_local = "1.1.4"
 lazy_static = "1.4"
 parking_lot = "0.11.1"
-futures = "0.3"
-uuid = { version = "1.1.2", features = ["v4"] }
+futures = { workspace = true }
+uuid = { version = "1.1.2", features = ["v4"] }

crates/terminal/Cargo.toml 🔗

@@ -20,7 +20,7 @@ procinfo = { git = "https://github.com/zed-industries/wezterm", rev = "5cd757e5f
 smallvec = { workspace = true }
 smol = "1.2.5"
 mio-extras = "2.0.6"
-futures = "0.3"
+futures = { workspace = true }
 ordered-float = "2.1.1"
 itertools = "0.10"
 dirs = "4.0.0"

crates/terminal_view/Cargo.toml 🔗

@@ -24,7 +24,7 @@ terminal = { path = "../terminal" }
 smallvec = { workspace = true }
 smol = "1.2.5"
 mio-extras = "2.0.6"
-futures = "0.3"
+futures = { workspace = true }
 ordered-float = "2.1.1"
 itertools = "0.10"
 dirs = "4.0.0"

crates/util/Cargo.toml 🔗

@@ -16,7 +16,7 @@ anyhow = "1.0.38"
 backtrace = "0.3"
 log = { version = "0.4.16", features = ["kv_unstable_serde"] }
 lazy_static = "1.4.0"
-futures = "0.3"
+futures = { workspace = true }
 isahc = "1.7"
 smol = "1.2.5"
 url = "2.2"

crates/workspace/Cargo.toml 🔗

@@ -38,7 +38,7 @@ util = { path = "../util" }
 async-recursion = "1.0.0"
 bincode = "1.2.1"
 anyhow = "1.0.38"
-futures = "0.3"
+futures = { workspace = true }
 lazy_static = "1.4"
 env_logger = "0.9.1"
 log = { version = "0.4.16", features = ["kv_unstable_serde"] }

crates/zed/Cargo.toml 🔗

@@ -76,7 +76,7 @@ chrono = "0.4"
 ctor = "0.1.20"
 easy-parallel = "3.1.0"
 env_logger = "0.9"
-futures = "0.3"
+futures = { workspace = true }
 ignore = "0.4"
 image = "0.23"
 indexmap = "1.6.2"