Cargo Features

[dependencies]
lychee = { version = "0.17.0", default-features = false, features = ["vendored-openssl", "check_example_domains", "email-check", "native-tls", "rustls-tls"] }
vendored-openssl

Compile and statically link a copy of OpenSSL.

Enables vendored of openssl-sys

check_example_domains

Allow checking example domains such as example.com.

Enables check_example_domains of lychee-lib

NOTE: We need to specify the version of lychee-lib here because crates.io requires all dependencies to have a version number.

email-check default

Enable checking email addresses. Requires the native-tls feature.

Enables email-check of lychee-lib

native-tls default = openssl-sys

Use platform-native TLS.

Enables native-tls of lychee-lib and reqwest

rustls-tls

Use Rustls TLS.

Enables rustls-tls of lychee-lib, rustls-tls-native-roots of reqwest

default = email-check, native-tls

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

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-sys native-tls vendored-openssl?