Cargo Features

[dependencies]
trunk = { version = "0.21.4", default-features = false, features = ["rustls", "native-tls", "update_check", "vendored"] }
default = native-tls, update_check

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

rustls

use rustls as TLS stack

Enables tls-rustls of axum-server, rustls-tls and rustls-tls-native-roots of reqwest, rustls and rustls-tls-native-roots of tokio-tungstenite ^0.24 and rustls of crates_io_api

required for the update check

Affects build::RtcBuild.root_certificate, build::RtcBuild.accept_invalid_certs, tools::HttpClientOptions.root_certificate, tools::HttpClientOptions.accept_invalid_certificates

native-tls default = openssl

use native-tls/openssl as TLS stack

Enables tls-openssl of axum-server, native-tls of reqwest and tokio-tungstenite ^0.24

Affects build::RtcBuild.root_certificate, build::RtcBuild.accept_invalid_certs, tools::HttpClientOptions.root_certificate, tools::HttpClientOptions.accept_invalid_certificates

update_check default = crates_io_api

enable the update check on startup

Affects common::UPDATE

vendored

enable vendoring on crates supporting that

Enables vendored of optional openssl

for enabling vendoring

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.

crates_io_api rustls? update_check
openssl native-tls