[[bench]]
harness = false
name = "decode"
path = "benches/decode.rs"
[dependencies.async-stream]
optional = true
version = "0.3"
[dependencies.async-trait]
optional = true
version = "0.1.13"
[dependencies.axum]
default-features = false
optional = true
version = "0.7"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1.0"
[dependencies.flate2]
optional = true
version = "1.0"
[dependencies.h2]
optional = true
version = "0.4"
[dependencies.http]
version = "1"
[dependencies.http-body]
version = "1"
[dependencies.http-body-util]
version = "0.1"
[dependencies.hyper]
features = ["http1", "http2"]
optional = true
version = "1"
[dependencies.hyper-timeout]
optional = true
version = "0.5"
[dependencies.hyper-util]
features = ["tokio"]
optional = true
version = "0.1.4"
[dependencies.percent-encoding]
version = "2.1"
[dependencies.pin-project]
version = "1.0.11"
[dependencies.prost]
default-features = false
features = ["std"]
optional = true
version = "0.13"
[dependencies.rustls-native-certs]
optional = true
version = "0.8"
[dependencies.rustls-pemfile]
optional = true
version = "2.0"
[dependencies.socket2]
features = ["all"]
optional = true
version = "0.5"
[dependencies.tokio]
default-features = false
optional = true
version = "1"
[dependencies.tokio-rustls]
default-features = false
features = ["logging", "tls12", "ring"]
optional = true
version = "0.26"
[dependencies.tokio-stream]
default-features = false
version = "0.1.16"
[dependencies.tower]
default-features = false
optional = true
version = "0.4.7"
[dependencies.tower-layer]
version = "0.3"
[dependencies.tower-service]
version = "0.3"
[dependencies.tracing]
version = "0.1"
[dependencies.webpki-roots]
optional = true
version = "0.26"
[dependencies.zstd]
optional = true
version = "0.13.0"
[dev-dependencies.bencher]
version = "0.1.5"
[dev-dependencies.quickcheck]
version = "1.0"
[dev-dependencies.quickcheck_macros]
version = "1.0"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.static_assertions]
version = "1.0"
[dev-dependencies.tokio]
features = ["rt", "macros"]
version = "1.0"
[dev-dependencies.tower]
features = ["full"]
version = "0.4.7"
[features]
channel = ["dep:hyper", "hyper?/client", "dep:hyper-util", "hyper-util?/client-legacy", "dep:tower", "tower?/balance", "tower?/buffer", "tower?/discover", "tower?/limit", "tower?/util", "dep:tokio", "tokio?/time", "dep:hyper-timeout"]
codegen = ["dep:async-trait"]
default = ["transport", "codegen", "prost"]
gzip = ["dep:flate2"]
prost = ["dep:prost"]
router = ["dep:axum", "dep:tower", "tower?/util"]
server = ["router", "dep:async-stream", "dep:h2", "dep:hyper", "hyper?/server", "dep:hyper-util", "hyper-util?/service", "hyper-util?/server-auto", "dep:socket2", "dep:tokio", "tokio?/macros", "tokio?/net", "tokio?/time", "tokio-stream/net", "dep:tower", "tower?/util", "tower?/limit"]
tls = ["dep:rustls-pemfile", "dep:tokio-rustls", "dep:tokio", "tokio?/rt", "tokio?/macros"]
tls-native-roots = ["tls", "channel", "dep:rustls-native-certs"]
tls-roots = ["tls-native-roots"]
tls-webpki-roots = ["tls", "channel", "dep:webpki-roots"]
transport = ["server", "channel"]
zstd = ["dep:zstd"]
[lib]
name = "tonic"
path = "src/lib.rs"
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["web-programming", "network-programming", "asynchronous"]
description = """
A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility.
"""
documentation = "https://docs.rs/tonic/0.12.3"
edition = "2021"
homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "async", "futures", "protobuf"]
license = "MIT"
name = "tonic"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.12.3"
[package.metadata.cargo_check_external_types]
allowed_external_types = ["bytes::*", "tokio::*", "http::*", "http_body::*", "hyper::*", "rustls_pki_types::*", "prost::*", "tracing::*", "async_trait::async_trait", "axum_core::body::Body", "axum::routing::Router", "futures_core::stream::Stream", "h2::error::Error", "http_body_util::combinators::box_body::UnsyncBoxBody", "tower::discover::Change", "tower_service::Service", "tower_layer::Layer", "tower_layer::stack::Stack", "tower_layer::identity::Identity"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]