Kaynağa Gözat

Migrate to rust edition 2021.

Jing Yang 4 yıl önce
ebeveyn
işleme
7c35532eda

+ 2 - 2
Cargo.toml

@@ -3,7 +3,7 @@ name = "ruaft"
 version = "0.1.0"
 description = "Raft implemented in Rust"
 authors = ["Jing Yang <ditsing@gmail.com>"]
-edition = "2018"
+edition = "2021"
 license = "MIT"
 keywords = ["raft", "consensus-protocol"]
 readme = "README.md"
@@ -24,7 +24,7 @@ parking_lot = "0.11.1"
 rand = "0.8"
 serde = "1.0.116"
 serde_derive = "1.0.116"
-tokio = { version = "1.7", features = ["rt-multi-thread", "time", "parking_lot"] }
+tokio = { version = "1.7", features = ["net", "rt-multi-thread", "time", "parking_lot"] }
 test_utils = { path = "test_utils", optional = true }
 
 [features]

+ 1 - 1
durio/Cargo.toml

@@ -2,7 +2,7 @@
 name = "durio"
 version = "0.1.0"
 authors = ["Jing Yang <ditsing@gmail.com>"]
-edition = "2018"
+edition = "2021"
 description = "KV store backed by Ruaft, targeting Raspberry Pis."
 documentation = ""
 readme = "README.md"

+ 1 - 1
kvraft/Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 name = "kvraft"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 async-trait = "0.1"

+ 2 - 2
linearizability/Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 name = "linearizability"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [dependencies]
-bit-set = "0.5"
+bit-set = "0.5"

+ 1 - 1
test_configs/Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 name = "test_configs"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 anyhow = "1.0"

+ 1 - 1
test_utils/Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 name = "test_utils"
 version = "0.1.0"
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 env_logger = "0.8"