chore: Upgrade to 2021 edition (#808)

This commit is contained in:
Lucio Franco
2021-10-24 21:12:20 -04:00
committed by GitHub
parent cc2b1634e2
commit 1f3df8db9e
23 changed files with 250 additions and 251 deletions
+19 -19
View File
@@ -1,10 +1,10 @@
[package]
name = "examples"
version = "0.1.0"
authors = ["Lucio Franco <[email protected]>"]
edition = "2018"
publish = false
edition = "2021"
license = "MIT"
name = "examples"
publish = false
version = "0.1.0"
[[bin]]
name = "helloworld-server"
@@ -179,38 +179,38 @@ name = "streaming-server"
path = "src/streaming/server.rs"
[dependencies]
tonic = { path = "../tonic", features = ["tls", "compression"] }
prost = "0.9"
tokio = { version = "1.0", features = ["rt-multi-thread", "time", "fs", "macros", "net"] }
tokio-stream = { version = "0.1", features = ["net"] }
async-stream = "0.3"
futures = { version = "0.3", default-features = false, features = ["alloc"] }
tower = { version = "0.4" }
futures = {version = "0.3", default-features = false, features = ["alloc"]}
prost = "0.9"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "fs", "macros", "net"]}
tokio-stream = {version = "0.1", features = ["net"]}
tonic = {path = "../tonic", features = ["tls", "compression"]}
tower = {version = "0.4"}
# Required for routeguide
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rand = "0.8"
serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0"
# Tracing
tracing = "0.1.16"
tracing-subscriber = { version = "0.2", features = ["tracing-log"] }
tracing-attributes = "0.1"
tracing-futures = "0.2"
tracing-subscriber = {version = "0.2", features = ["tracing-log"]}
# Required for wellknown types
prost-types = "0.9"
# Hyper example
hyper = { version = "0.14", features = ["full"] }
warp = "0.3"
http = "0.2"
http-body = "0.4.2"
hyper = {version = "0.14", features = ["full"]}
pin-project = "1.0"
warp = "0.3"
# Health example
tonic-health = { path = "../tonic-health" }
tonic-health = {path = "../tonic-health"}
# Reflection example
tonic-reflection = { path = "../tonic-reflection" }
listenfd = "0.3"
tonic-reflection = {path = "../tonic-reflection"}
# grpc-web example
tonic-web = { path = "../tonic-web" }
bytes = "1"
tonic-web = {path = "../tonic-web"}
[build-dependencies]
tonic-build = { path = "../tonic-build", features = ["prost", "compression"] }
tonic-build = {path = "../tonic-build", features = ["prost", "compression"]}
+1 -1
View File
@@ -102,7 +102,7 @@ Now that have defined the protobuf for our application we can start writing our
[package]
name = "helloworld-tonic"
version = "0.1.0"
edition = "2018"
edition = "2021"
[[bin]] # Bin to run the HelloWorld gRPC server
name = "helloworld-server"