Cargo Features

[dependencies]
tonic = { version = "0.12.3", default-features = false, features = ["codegen", "gzip", "zstd", "prost", "tls", "tls-roots", "tls-native-roots", "tls-webpki-roots", "router", "server", "channel", "transport"] }
default = codegen, prost, transport

These default features are set whenever tonic is added without default-features = false somewhere in the dependency tree.

codegen default

Enables async-trait

Affects tonic::codegen

gzip

Enables flate2

compression

zstd

Enables zstd

prost default

Enables prost

tls tls-native-roots? tls-webpki-roots?

Enables tokio-rustls, macros and rt of tokio and rustls-pemfile

rustls

Affects conn::TlsConnectInfo

tls-roots = tls-native-roots

Deprecated. Please use tls-native-roots instead.

tls-native-roots tls-roots? = channel, tls

Enables rustls-native-certs

tls-webpki-roots = channel, tls

Enables webpki-roots

router server?

Enables axum ^0.7, util of tower ^0.4.7

server transport = router

Enables socket2, server of hyper, server-auto and service of hyper-util, macros, net and time of tokio, net of tokio-stream, limit and util of tower ^0.4.7 and async-stream and h2

async-stream:

transport

Affects transport::server, tonic::transport

channel tls-native-roots? tls-webpki-roots? transport

Enables hyper-timeout, client-legacy of hyper-util, time of tokio, balance, buffer, discover, limit and util of tower ^0.4.7 and client of hyper

hyper:

Client/Server

Affects transport::channel, tonic::transport

transport default = channel, server

Features from optional dependencies

harness = false

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy