Cargo Features

tls-listener = { version = "0.10.0", default-features = false, features = ["rustls", "native-tls", "openssl", "rt", "tokio-net"] }
default = tokio-net

The tokio-net feature is set by default whenever tls-listener is added without default-features = false somewhere in the dependency tree.

rustls = tokio-rustls
native-tls = tokio-native-tls
openssl = openssl_impl, tokio-openssl

Enables rt of tokio


Includes basic task execution capabilities

tokio-net default

Enables net of tokio

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-native-tls native-tls?
tokio-rustls rustls?

Enables tokio-rustls ^0.25.0

tokio-openssl openssl?
openssl_impl openssl?

Enables openssl