Cargo Features

[dependencies]
chateau = { version = "0.2.0-rc2", default-features = false, features = ["client", "server", "codec", "duplex", "happy_eyeballs", "tls", "tls-aws-lc", "tls-ring", "docs", "mock"] }
default = client, duplex, server

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

client default = happy_eyeballs

Affects chateau::client

server default

Affects chateau::server, tls::TlsHandshakeInfo

codec

Enables tokio-util

Affects protocol::framed, chateau::framed, server::codec

duplex default

Affects transport::duplex, stream::duplex

happy_eyeballs client

Enables time of tokio

tls tls-aws-lc? tls-ring?

Enables rustls, rustls-native-certs, and tokio-rustls

Affects stream::tls, transport::tls, transport::TlsConnectionError, client::default_tls_config, conn::tls, stream::tls

tls-aws-lc = tls

Enables aws_lc_rs of rustls and tokio-rustls

tls-ring = tls

Enables ring of rustls and tokio-rustls

docs
mock

Affects protocol::mock, stream::mock, transport::mock

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tokio-util codec?