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

Add separate features for native system roots and Mozilla webpki roots. Update documentation and build configs to reflect new options.
50 lines
1.3 KiB
TOML
50 lines
1.3 KiB
TOML
[package]
|
|
name = "librespot-oauth"
|
|
version.workspace = true
|
|
rust-version.workspace = true
|
|
authors = ["Nick Steel <nick@nsteel.co.uk>"]
|
|
license.workspace = true
|
|
description = "OAuth authorization code flow with PKCE for obtaining a Spotify access token"
|
|
repository.workspace = true
|
|
edition.workspace = true
|
|
|
|
[features]
|
|
# Refer to the workspace Cargo.toml for the list of features
|
|
default = ["native-tls"]
|
|
|
|
# TLS backends (mutually exclusive - compile-time checks in src/lib.rs)
|
|
native-tls = ["oauth2/native-tls", "reqwest/native-tls"]
|
|
rustls-tls-native-roots = [
|
|
"__rustls",
|
|
"oauth2/rustls-tls",
|
|
"reqwest/rustls-tls-native-roots",
|
|
]
|
|
rustls-tls-webpki-roots = [
|
|
"__rustls",
|
|
"oauth2/rustls-tls",
|
|
"reqwest/rustls-tls-webpki-roots",
|
|
]
|
|
|
|
# Internal features - these are not meant to be used by end users
|
|
__rustls = []
|
|
|
|
[dependencies]
|
|
log = "0.4"
|
|
oauth2 = { version = "5.0", default-features = false, features = [
|
|
"reqwest",
|
|
"reqwest-blocking",
|
|
] }
|
|
open = "5.3"
|
|
reqwest = { version = "0.12", default-features = false, features = [
|
|
"system-proxy",
|
|
] }
|
|
thiserror = "2"
|
|
url = "2.5"
|
|
|
|
[dev-dependencies]
|
|
env_logger = { version = "0.11", default-features = false, features = [
|
|
"color",
|
|
"humantime",
|
|
"auto-color",
|
|
] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
|