Use Rust 2021 edition in all crates

Max Brunsfeld and Nathan Sobo created

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Change summary

crates/chat_panel/Cargo.toml                      | 2 +-
crates/client/Cargo.toml                          | 2 +-
crates/clock/Cargo.toml                           | 2 +-
crates/contacts_panel/Cargo.toml                  | 2 +-
crates/file_finder/Cargo.toml                     | 2 +-
crates/fsevent/Cargo.toml                         | 2 +-
crates/fuzzy/Cargo.toml                           | 2 +-
crates/go_to_line/Cargo.toml                      | 2 +-
crates/gpui/Cargo.toml                            | 2 +-
crates/gpui/grammars/context-predicate/Cargo.toml | 2 +-
crates/gpui_macros/Cargo.toml                     | 2 +-
crates/lsp/Cargo.toml                             | 2 +-
crates/project_panel/Cargo.toml                   | 2 +-
crates/rpc/Cargo.toml                             | 6 +++---
crates/server/Cargo.toml                          | 2 +-
crates/sum_tree/Cargo.toml                        | 2 +-
crates/theme/Cargo.toml                           | 2 +-
crates/theme_selector/Cargo.toml                  | 2 +-
crates/util/Cargo.toml                            | 4 ++--
crates/zed/Cargo.toml                             | 2 +-
20 files changed, 23 insertions(+), 23 deletions(-)

Detailed changes

crates/chat_panel/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "chat_panel"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/chat_panel.rs"

crates/client/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "client"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/client.rs"

crates/clock/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "clock"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/clock.rs"

crates/contacts_panel/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "contacts_panel"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/contacts_panel.rs"

crates/file_finder/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "file_finder"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/file_finder.rs"

crates/fsevent/Cargo.toml 🔗

@@ -2,7 +2,7 @@
 name = "fsevent"
 version = "2.0.2"
 license = "MIT"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/fsevent.rs"

crates/fuzzy/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "fuzzy"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/fuzzy.rs"

crates/go_to_line/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "go_to_line"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/go_to_line.rs"

crates/gpui/Cargo.toml 🔗

@@ -1,6 +1,6 @@
 [package]
 authors = ["Nathan Sobo <nathansobo@gmail.com>"]
-edition = "2018"
+edition = "2021"
 name = "gpui"
 version = "0.1.0"
 

crates/gpui/grammars/context-predicate/Cargo.toml 🔗

@@ -5,7 +5,7 @@ version = "0.0.1"
 keywords = ["incremental", "parsing", "context-predicate"]
 categories = ["parsing", "text-editors"]
 repository = "https://github.com/tree-sitter/tree-sitter-javascript"
-edition = "2018"
+edition = "2021"
 license = "MIT"
 build = "bindings/rust/build.rs"
 include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]

crates/gpui_macros/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "gpui_macros"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/gpui_macros.rs"

crates/lsp/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "lsp"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/lsp.rs"

crates/project_panel/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "project_panel"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/project_panel.rs"

crates/rpc/Cargo.toml 🔗

@@ -1,6 +1,6 @@
 [package]
 description = "Shared logic for communication between the Zed app and the zed.dev server"
-edition = "2018"
+edition = "2021"
 name = "rpc"
 version = "0.1.0"
 
@@ -8,7 +8,7 @@ version = "0.1.0"
 path = "src/rpc.rs"
 
 [features]
-test-support = ["gpui"]
+test-support = ["gpui/test-support"]
 
 [dependencies]
 anyhow = "1.0"
@@ -25,7 +25,7 @@ rsa = "0.4"
 serde = { version = "1", features = ["derive"] }
 smol-timeout = "0.6"
 zstd = "0.9"
-gpui = { path = "../gpui", features = ["test-support"], optional = true }
+gpui = { path = "../gpui", optional = true }
 
 [build-dependencies]
 prost-build = "0.8"

crates/server/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 authors = ["Nathan Sobo <nathan@warp.dev>"]
 default-run = "zed-server"
-edition = "2018"
+edition = "2021"
 name = "zed-server"
 version = "0.1.0"
 

crates/sum_tree/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "sum_tree"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/sum_tree.rs"

crates/theme/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "theme"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/theme.rs"

crates/theme_selector/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "theme_selector"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [lib]
 path = "src/theme_selector.rs"

crates/util/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 name = "util"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [features]
 test-support = ["clock", "rand", "serde_json", "tempdir"]
@@ -15,5 +15,5 @@ rand = { version = "0.8", optional = true }
 surf = "2.2"
 tempdir = { version = "0.3.7", optional = true }
 serde_json = { version = "1.0.64", features = [
-    "preserve_order"
+    "preserve_order",
 ], optional = true }

crates/zed/Cargo.toml 🔗

@@ -1,7 +1,7 @@
 [package]
 authors = ["Nathan Sobo <nathansobo@gmail.com>"]
 description = "The fast, collaborative code editor."
-edition = "2018"
+edition = "2021"
 name = "zed"
 version = "0.13.0"