Use Rust 2021 edition in all crates

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-01-26 12:50:31 -08:00
parent 509d362bdd
commit 0e55f0ccaa
20 changed files with 23 additions and 23 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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