Cargo Features

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

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

codegen default

Enables async-trait

Affects architect-tonic::codegen

gzip

Enables flate2

compression

zstd

Enables zstd

prost default

Enables prost

_tls-any tls-aws-lc? tls-native-roots? tls-ring? tls-webpki-roots?

Internal. Please choose one of tls-ring or tls-aws-lc

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

rustls

Affects conn::TlsConnectInfo

tls = tls-ring

Deprecated. Please use tls-ring or tls-aws-lc instead.

tls-ring tls? = _tls-any

Enables ring of tokio-rustls

tls-aws-lc = _tls-any

Enables aws-lc-rs of tokio-rustls

tokio-rustls:

Alias because Cargo features commonly use -

tls-roots = tls-native-roots

Deprecated. Please use tls-native-roots instead.

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

Enables rustls-native-certs

tls-webpki-roots = _tls-any, channel

Enables webpki-roots

router server?

Enables axum ^0.7, util of tower

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

async-stream:

transport

Affects transport::server, architect-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 and client of hyper

hyper:

Client/Server

Affects transport::channel, architect-tonic::transport

transport default = channel, server

Features from optional dependencies

harness = false