Cargo Features
[dependencies]
tealdeer = { version = "1.7.1", default-features = false, features = ["logging", "native-roots", "webpki-roots", "native-tls"] }
- default = native-roots
-
The
native-roots
feature is set by default whenevertealdeer
is added without
somewhere in the dependency tree.default-features = false - logging = env_logger
- native-roots default
-
Reqwest (the HTTP client library) can handle TLS connections in three different modes:
- Rustls with native roots
- Rustls with WebPK roots
- Native TLS (SChannel on Windows, Secure Transport on macOS and OpenSSL otherwise)
Exactly one of the three variants must be selected. By default, Rustls with native roots is enabled.Enables rustls-tls-native-roots of reqwest
- webpki-roots
-
Enables rustls-tls-webpki-roots of reqwest
- native-tls
-
Enables native-tls of reqwest
reqwest:
Enables native-tls specific functionality not available by default.
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.