chore: Upgrade to 2021 edition (#808)
This commit is contained in:
+51
-51
@@ -8,97 +8,97 @@ name = "tonic"
|
||||
# - README.md
|
||||
# - Update CHANGELOG.md.
|
||||
# - Create "v0.6.x" git tag.
|
||||
version = "0.6.0"
|
||||
authors = ["Lucio Franco <[email protected]>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
documentation = "https://docs.rs/tonic/0.6.0/tonic/"
|
||||
repository = "https://github.com/hyperium/tonic"
|
||||
homepage = "https://github.com/hyperium/tonic"
|
||||
categories = ["web-programming", "network-programming", "asynchronous"]
|
||||
description = """
|
||||
A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility.
|
||||
"""
|
||||
readme = "../README.md"
|
||||
categories = ["web-programming", "network-programming", "asynchronous"]
|
||||
documentation = "https://docs.rs/tonic/0.6.0/tonic/"
|
||||
edition = "2021"
|
||||
homepage = "https://github.com/hyperium/tonic"
|
||||
keywords = ["rpc", "grpc", "async", "futures", "protobuf"]
|
||||
license = "MIT"
|
||||
readme = "../README.md"
|
||||
repository = "https://github.com/hyperium/tonic"
|
||||
version = "0.6.0"
|
||||
|
||||
[features]
|
||||
default = ["transport", "codegen", "prost"]
|
||||
codegen = ["async-trait"]
|
||||
transport = [
|
||||
"h2",
|
||||
"hyper",
|
||||
"tokio",
|
||||
"tower",
|
||||
"tracing-futures",
|
||||
"tokio/macros",
|
||||
"tokio/time",
|
||||
"hyper-timeout",
|
||||
]
|
||||
tls = ["transport", "tokio-rustls"]
|
||||
tls-roots-common = ["tls"]
|
||||
tls-roots = ["tls-roots-common", "rustls-native-certs"]
|
||||
tls-webpki-roots = ["tls-roots-common", "webpki-roots"]
|
||||
prost = ["prost1", "prost-derive"]
|
||||
compression = ["flate2"]
|
||||
default = ["transport", "codegen", "prost"]
|
||||
prost = ["prost1", "prost-derive"]
|
||||
tls = ["transport", "tokio-rustls"]
|
||||
tls-roots = ["tls-roots-common", "rustls-native-certs"]
|
||||
tls-roots-common = ["tls"]
|
||||
tls-webpki-roots = ["tls-roots-common", "webpki-roots"]
|
||||
transport = [
|
||||
"h2",
|
||||
"hyper",
|
||||
"tokio",
|
||||
"tower",
|
||||
"tracing-futures",
|
||||
"tokio/macros",
|
||||
"tokio/time",
|
||||
"hyper-timeout",
|
||||
]
|
||||
|
||||
# [[bench]]
|
||||
# name = "bench_main"
|
||||
# harness = false
|
||||
|
||||
[dependencies]
|
||||
bytes = "1.0"
|
||||
futures-core = { version = "0.3", default-features = false }
|
||||
futures-util = { version = "0.3", default-features = false }
|
||||
tracing = "0.1"
|
||||
http = "0.2"
|
||||
base64 = "0.13"
|
||||
bytes = "1.0"
|
||||
futures-core = {version = "0.3", default-features = false}
|
||||
futures-util = {version = "0.3", default-features = false}
|
||||
http = "0.2"
|
||||
tracing = "0.1"
|
||||
|
||||
percent-encoding = "2.1"
|
||||
tower-service = "0.3"
|
||||
tower-layer = "0.3"
|
||||
tokio-util = { version = "0.6", features = ["codec"] }
|
||||
async-stream = "0.3"
|
||||
http-body = "0.4.2"
|
||||
percent-encoding = "2.1"
|
||||
pin-project = "1.0"
|
||||
tokio-util = {version = "0.6", features = ["codec"]}
|
||||
tower-layer = "0.3"
|
||||
tower-service = "0.3"
|
||||
|
||||
# prost
|
||||
prost1 = { package = "prost", version = "0.9", optional = true }
|
||||
prost-derive = { version = "0.9", optional = true }
|
||||
prost-derive = {version = "0.9", optional = true}
|
||||
prost1 = {package = "prost", version = "0.9", optional = true}
|
||||
|
||||
# codegen
|
||||
async-trait = { version = "0.1.13", optional = true }
|
||||
async-trait = {version = "0.1.13", optional = true}
|
||||
|
||||
# transport
|
||||
h2 = { version = "0.3", optional = true }
|
||||
hyper = { version = "0.14.2", features = ["full"], optional = true }
|
||||
tokio = { version = "1.0.1", features = ["net"], optional = true }
|
||||
h2 = {version = "0.3", optional = true}
|
||||
hyper = {version = "0.14.2", features = ["full"], optional = true}
|
||||
hyper-timeout = {version = "0.4", optional = true}
|
||||
tokio = {version = "1.0.1", features = ["net"], optional = true}
|
||||
tokio-stream = "0.1"
|
||||
tower = { version = "0.4.7", features = ["balance", "buffer", "discover", "limit", "load", "make", "timeout", "util"], optional = true }
|
||||
tracing-futures = { version = "0.2", optional = true }
|
||||
hyper-timeout = { version = "0.4", optional = true }
|
||||
tower = {version = "0.4.7", features = ["balance", "buffer", "discover", "limit", "load", "make", "timeout", "util"], optional = true}
|
||||
tracing-futures = {version = "0.2", optional = true}
|
||||
|
||||
# rustls
|
||||
tokio-rustls = { version = "0.22", optional = true }
|
||||
rustls-native-certs = { version = "0.5", optional = true }
|
||||
webpki-roots = { version = "0.21.1", optional = true }
|
||||
rustls-native-certs = {version = "0.5", optional = true}
|
||||
tokio-rustls = {version = "0.22", optional = true}
|
||||
webpki-roots = {version = "0.21.1", optional = true}
|
||||
|
||||
# compression
|
||||
flate2 = { version = "1.0", optional = true }
|
||||
flate2 = {version = "1.0", optional = true}
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1.0", features = ["rt", "macros"] }
|
||||
static_assertions = "1.0"
|
||||
rand = "0.8"
|
||||
bencher = "0.1.5"
|
||||
quickcheck = "1.0"
|
||||
quickcheck_macros = "1.0"
|
||||
tower = { version = "0.4.7", features = ["full"] }
|
||||
rand = "0.8"
|
||||
static_assertions = "1.0"
|
||||
tokio = {version = "1.0", features = ["rt", "macros"]}
|
||||
tower = {version = "0.4.7", features = ["full"]}
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[[bench]]
|
||||
name = "decode"
|
||||
harness = false
|
||||
name = "decode"
|
||||
|
||||
Reference in New Issue
Block a user