Cargo Features

[dependencies]
tonic-rustls = { version = "0.1.0", default-features = false, features = ["tls", "server", "channel", "axum"] }
default = channel, server, tls

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

tls default

Enables macros and rt of tokio and tokio-rustls

rustls

Affects conn::TlsConnectInfo

server default

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 and async-stream and h2

async-stream:

transport

Affects tonic-rustls::server

channel default

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

hyper:

Client/Server

Affects tonic-rustls::channel

Features from optional dependencies

axum implicit feature

Enables axum

axum:

Web framework that focuses on ergonomics and modularity