# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "tonic" version = "0.12.3" authors = ["Lucio Franco "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = """ A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility. """ homepage = "https://github.com/hyperium/tonic" documentation = "https://docs.rs/tonic/0.12.3" readme = "README.md" keywords = [ "rpc", "grpc", "async", "futures", "protobuf", ] categories = [ "web-programming", "network-programming", "asynchronous", ] license = "MIT" repository = "https://github.com/hyperium/tonic" [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", ] [lib] name = "tonic" path = "src/lib.rs" [[bench]] name = "decode" path = "benches/decode.rs" harness = false [dependencies.async-stream] version = "0.3" optional = true [dependencies.async-trait] version = "0.1.13" optional = true [dependencies.axum] version = "0.7" optional = true default-features = false [dependencies.base64] version = "0.22" [dependencies.bytes] version = "1.0" [dependencies.flate2] version = "1.0" optional = true [dependencies.h2] version = "0.4" optional = true [dependencies.http] version = "1" [dependencies.http-body] version = "1" [dependencies.http-body-util] version = "0.1" [dependencies.hyper] version = "1" features = [ "http1", "http2", ] optional = true [dependencies.hyper-timeout] version = "0.5" optional = true [dependencies.hyper-util] version = "0.1.4" features = ["tokio"] optional = true [dependencies.percent-encoding] version = "2.1" [dependencies.pin-project] version = "1.0.11" [dependencies.prost] version = "0.13" features = ["std"] optional = true default-features = false [dependencies.rustls-native-certs] version = "0.8" optional = true [dependencies.rustls-pemfile] version = "2.0" optional = true [dependencies.socket2] version = "0.5" features = ["all"] optional = true [dependencies.tokio] version = "1" optional = true default-features = false [dependencies.tokio-rustls] version = "0.26" features = [ "logging", "tls12", "ring", ] optional = true default-features = false [dependencies.tokio-stream] version = "0.1.16" default-features = false [dependencies.tower] version = "0.4.7" optional = true default-features = false [dependencies.tower-layer] version = "0.3" [dependencies.tower-service] version = "0.3" [dependencies.tracing] version = "0.1" [dependencies.webpki-roots] version = "0.26" optional = true [dependencies.zstd] version = "0.13.0" optional = true [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] version = "1.0" features = [ "rt", "macros", ] [dev-dependencies.tower] version = "0.4.7" features = ["full"] [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"]