Skip to content

Commit

Permalink
chore: Update internal crates to Rust edition 2021 (#1039)
Browse files Browse the repository at this point in the history
The published crates were already using edition 2021. Update all internal crates as well.

Also add a new tests-2018 crate that runs all tests using edition 2018.
  • Loading branch information
caspermeijn committed Apr 28, 2024
1 parent 95dcb0e commit a21d90c
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 7 deletions.
2 changes: 1 addition & 1 deletion conformance/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ authors = [
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
edition = "2021"

[dependencies]
bytes = "1"
Expand Down
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ authors = [
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
edition = "2021"

[package.metadata]
cargo-fuzz = true
Expand Down
2 changes: 1 addition & 1 deletion fuzz/afl/proto3/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "fuzz-target-proto3"
version = "0.1.0"
authors = ["Prost developers"]
edition = "2018"
edition = "2021"

[[bin]]
name = "fuzz-target"
Expand Down
2 changes: 1 addition & 1 deletion protobuf/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ authors = [
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
edition = "2021"

[dependencies]
prost = { path = "../prost" }
Expand Down
38 changes: 38 additions & 0 deletions tests-2018/Cargo.toml
@@ -0,0 +1,38 @@
[package]
name = "tests-2018"
version = "0.0.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"

build = "../tests/src/build.rs"

[lib]
doctest = false
path = "../tests/src/lib.rs"

[features]
default = ["std"]
std = []

[dependencies]
anyhow = "1.0.1"
bytes = "1"
cfg-if = "1"
prost = { path = "../prost" }
prost-types = { path = "../prost-types" }
protobuf = { path = "../protobuf" }

[dev-dependencies]
diff = "0.1"
prost-build = { path = "../prost-build", features = ["cleanup-markdown"] }
tempfile = "3"

[build-dependencies]
cfg-if = "1"
env_logger = { version = "0.10", default-features = false }
prost-build = { path = "../prost-build" }
protobuf = { path = "../protobuf" }
2 changes: 1 addition & 1 deletion tests-no-std/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ authors = [
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
edition = "2021"

build = "../tests/src/build.rs"

Expand Down
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ authors = [
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
edition = "2021"

build = "src/build.rs"

Expand Down
2 changes: 1 addition & 1 deletion tests/single-include/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "single_include"
version = "0.1.0"
authors = ["Cameron Dart <cdart2@illinois.edu>"]
edition = "2018"
edition = "2021"
publish = false
license = "MIT"

Expand Down

0 comments on commit a21d90c

Please sign in to comment.