Cargo Features

[dependencies]
tcp-stream = { version = "0.28.0", default-features = false, features = ["native-tls", "rustls", "rustls-webpki-roots-certs", "rustls-native-certs", "rustls-common", "vendored-openssl"] }
default = rustls

The rustls feature is set by default whenever tcp-stream is added without default-features = false somewhere in the dependency tree.

native-tls = rustls-pemfile

Enables native-tls

Affects tcp-stream::NativeTlsStream, tcp-stream::NativeTlsMidHandshakeTlsStream, tcp-stream::NativeTlsHandshakeError

rustls default = rustls-native-certs
rustls-webpki-roots-certs = rustls-common

Enables webpki-roots-certs of rustls-connector

rustls-native-certs rustls = rustls-common

Enables native-certs of rustls-connector

rustls-common rustls-native-certs? rustls-webpki-roots-certs? = p12-keystore, rustls-connector, rustls-pemfile
vendored-openssl

Enables vendored of openssl

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.

openssl vendored-openssl?

Affects tcp-stream::OpenSslStream, tcp-stream::OpenSslMidHandshakeTlsStream, tcp-stream::OpenSslHandshakeError, tcp-stream::OpenSslErrorStack

p12-keystore rustls-common?
rustls-pemfile native-tls? rustls-common?
rustls-connector rustls-common? rustls-native-certs? rustls-webpki-roots-certs?

Affects tcp-stream::RustlsStream, tcp-stream::RustlsMidHandshakeTlsStream, tcp-stream::RustlsHandshakeError