@@ -48,14 +48,27 @@ default = ["native-tls", "rodio-backend", "with-libmdns"]
4848# system-managed certificates.
4949native-tls = [" librespot-core/native-tls" , " librespot-oauth/native-tls" ]
5050
51- # rustls-tls: Uses the Rust-based rustls TLS implementation with platform certificate verification.
52- # This provides a Rust TLS stack (with assembly optimizations) that uses rustls-platform-verifier to
53- # automatically select the appropriate certificate authority (CA) certificates from your system's
54- # trust store. Choose this for avoiding external OpenSSL dependencies, reproducible builds, or when
55- # targeting platforms where native TLS dependencies are unavailable or problematic (musl, embedded,
56- # static linking). On Linux it uses ca-certificates, on macOS it uses Security.framework, and on
57- # Windows it uses the Windows certificate store.
58- rustls-tls = [" librespot-core/rustls-tls" , " librespot-oauth/rustls-tls" ]
51+ # rustls-tls: Uses the Rust-based rustls TLS implementation with certificate authority (CA)
52+ # verification. This provides a Rust TLS stack (with assembly optimizations). Choose this for
53+ # avoiding external OpenSSL dependencies, reproducible builds, or when targeting platforms where
54+ # native TLS dependencies are unavailable or problematic (musl, embedded, static linking).
55+ #
56+ # Two certificate store options are available:
57+ #
58+ # - rustls-tls-native-roots: Uses rustls with native system certificate stores (ca-certificates on
59+ # Linux, Security.framework on macOS, Windows certificate store on Windows). Best for most users as
60+ # it integrates with system-managed certificates and gets security updates through the OS.
61+ rustls-tls-native-roots = [
62+ " librespot-core/rustls-tls-native-roots" ,
63+ " librespot-oauth/rustls-tls-native-roots" ,
64+ ]
65+ # rustls-tls-webpki-roots: Uses rustls with Mozilla's compiled-in certificate store (webpki-roots).
66+ # Best for reproducible builds, containerized environments, or when you want certificate handling
67+ # to be independent of the host system.
68+ rustls-tls-webpki-roots = [
69+ " librespot-core/rustls-tls-webpki-roots" ,
70+ " librespot-oauth/rustls-tls-webpki-roots" ,
71+ ]
5972
6073# Audio backends - see README.md for audio backend selection guide
6174# Cross-platform backends:
0 commit comments