1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 17:59:24 +02:00

feat: add configurable TLS backend selection with native-tls as default (#1541)

Add support for choosing between native-tls and rustls-tls backends
through feature flags, with native-tls as the default for maximum
platform compatibility.

Key changes:
- Add mutually exclusive native-tls and rustls-tls feature flags
- Use conditional compilation to select TLS implementation
- Configure rustls-tls with platform certificate verifier
- Refactor to workspace-based dependency management
- Update CI workflows with improved cross-compilation support
- Add comprehensive TLS backend documentation

The native-tls backend uses system TLS libraries (OpenSSL on Linux,
Secure Transport on macOS, SChannel on Windows) while rustls-tls
provides a pure Rust implementation with platform certificate stores.
This commit is contained in:
Roderick van Domburg 2025-08-19 23:06:28 +02:00 committed by GitHub
parent 03bcdc6bda
commit 0a4969ffe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 928 additions and 577 deletions

View file

@ -41,7 +41,7 @@ fn main() {
{
Ok(client) => client,
Err(err) => {
eprintln!("Unable to build an OAuth client: {}", err);
eprintln!("Unable to build an OAuth client: {err}");
return;
}
};