301 lines
5.3 KiB
TOML
301 lines
5.3 KiB
TOML
# 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"
|
|
rust-version = "1.75"
|
|
name = "tonic"
|
|
version = "0.14.2"
|
|
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
|
|
build = false
|
|
exclude = ["benches-disabled"]
|
|
autolib = 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"
|
|
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_core::response::into_response::IntoResponse",
|
|
"axum::routing::Router",
|
|
"futures_core::stream::Stream",
|
|
"h2::error::Error",
|
|
"tower_service::Service",
|
|
"tower_layer::Layer",
|
|
"tower_layer::stack::Stack",
|
|
"tower_layer::identity::Identity",
|
|
]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[features]
|
|
_tls-any = [
|
|
"dep:tokio",
|
|
"tokio?/rt",
|
|
"tokio?/macros",
|
|
"tls-connect-info",
|
|
]
|
|
channel = [
|
|
"dep:hyper",
|
|
"hyper?/client",
|
|
"dep:hyper-util",
|
|
"hyper-util?/client-legacy",
|
|
"dep:tower",
|
|
"tower?/balance",
|
|
"tower?/buffer",
|
|
"tower?/discover",
|
|
"tower?/limit",
|
|
"tower?/load-shed",
|
|
"tower?/util",
|
|
"dep:tokio",
|
|
"tokio?/time",
|
|
"dep:hyper-timeout",
|
|
]
|
|
codegen = ["dep:async-trait"]
|
|
default = [
|
|
"router",
|
|
"transport",
|
|
"codegen",
|
|
]
|
|
deflate = ["dep:flate2"]
|
|
gzip = ["dep:flate2"]
|
|
router = [
|
|
"dep:axum",
|
|
"dep:tower",
|
|
"tower?/util",
|
|
]
|
|
server = [
|
|
"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",
|
|
"tower?/load-shed",
|
|
]
|
|
tls-aws-lc = [
|
|
"_tls-any",
|
|
"tokio-rustls/aws-lc-rs",
|
|
]
|
|
tls-connect-info = ["dep:tokio-rustls"]
|
|
tls-native-roots = [
|
|
"_tls-any",
|
|
"channel",
|
|
"dep:rustls-native-certs",
|
|
]
|
|
tls-ring = [
|
|
"_tls-any",
|
|
"tokio-rustls/ring",
|
|
]
|
|
tls-webpki-roots = [
|
|
"_tls-any",
|
|
"channel",
|
|
"dep:webpki-roots",
|
|
]
|
|
transport = [
|
|
"server",
|
|
"channel",
|
|
]
|
|
zstd = ["dep:zstd"]
|
|
|
|
[lib]
|
|
name = "tonic"
|
|
path = "src/lib.rs"
|
|
|
|
[[bench]]
|
|
name = "decode"
|
|
path = "benches/decode.rs"
|
|
harness = false
|
|
|
|
[dependencies.async-trait]
|
|
version = "0.1.13"
|
|
optional = true
|
|
|
|
[dependencies.axum]
|
|
version = "0.8"
|
|
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.rustls-native-certs]
|
|
version = "0.8"
|
|
optional = true
|
|
|
|
[dependencies.socket2]
|
|
version = "0.6"
|
|
features = ["all"]
|
|
optional = true
|
|
|
|
[dependencies.sync_wrapper]
|
|
version = "1.0.2"
|
|
|
|
[dependencies.tokio]
|
|
version = "1"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tokio-rustls]
|
|
version = "0.26.1"
|
|
features = [
|
|
"logging",
|
|
"tls12",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tokio-stream]
|
|
version = "0.1.16"
|
|
default-features = false
|
|
|
|
[dependencies.tower]
|
|
version = "0.5"
|
|
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 = "1"
|
|
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.static_assertions]
|
|
version = "1.0"
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.0"
|
|
features = [
|
|
"rt-multi-thread",
|
|
"macros",
|
|
]
|
|
|
|
[dev-dependencies.tower]
|
|
version = "0.5"
|
|
features = [
|
|
"load-shed",
|
|
"timeout",
|
|
]
|
|
|
|
[lints.clippy]
|
|
uninlined_format_args = "deny"
|
|
|
|
[lints.rust]
|
|
missing_debug_implementations = "warn"
|
|
missing_docs = "warn"
|
|
rust_2018_idioms = "warn"
|
|
unreachable_pub = "warn"
|
|
|
|
[lints.rustdoc]
|
|
broken_intra_doc_links = "deny"
|