You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wraps std::net::TcpStream in a TcpStream enum that can be upgraded to a
TLS-encrypted stream via TcpStream::into_tls. Supported backends are rustls
(default), native-tls, and OpenSSL. Async futures-io trait implementations
are provided when the futures feature is enabled.
Feature flags
Async runtime (pick exactly one)
Flag
Notes
tokio(default)
Requires a running Tokio runtime
smol
Uses the smol executor
async-global-executor
Uses async-global-executor
TLS backend (pick at most one)
Flag
Notes
rustls(default)
TLS via rustls
native-tls
TLS via the platform's native library
openssl
TLS via OpenSSL
Rustls certificate store (when rustls is active)
Flag
Notes
rustls-platform-verifier(default)
Uses the platform trust store
rustls-native-certs
Loads native root certificates
rustls-webpki-roots-certs
Uses the webpki bundled root set
Rustls crypto provider (at least one required)
Flag
Notes
rustls--aws_lc_rs(default)
Uses aws-lc-rs
rustls--ring
Uses ring (more portable, e.g. builds on Windows)
Miscellaneous
Flag
Notes
futures
Enable futures-io async trait impls on the encrypted stream
vendored-openssl
Build a vendored OpenSSL (requires openssl feature)