mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00

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.
30 lines
758 B
TOML
30 lines
758 B
TOML
[package]
|
|
name = "librespot-metadata"
|
|
version.workspace = true
|
|
rust-version.workspace = true
|
|
authors = ["Paul Lietar <paul@lietar.net>"]
|
|
license.workspace = true
|
|
description = "The metadata logic for librespot"
|
|
repository.workspace = true
|
|
edition.workspace = true
|
|
|
|
[features]
|
|
# Refer to the workspace Cargo.toml for the list of features
|
|
default = ["native-tls"]
|
|
|
|
# TLS backend propagation
|
|
native-tls = ["librespot-core/native-tls"]
|
|
rustls-tls = ["librespot-core/rustls-tls"]
|
|
|
|
[dependencies]
|
|
librespot-core.workspace = true
|
|
librespot-protocol.workspace = true
|
|
|
|
async-trait = "0.1"
|
|
bytes = "1"
|
|
log = "0.4"
|
|
protobuf = "3.7"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
thiserror = "2"
|
|
uuid = { version = "1", default-features = false }
|