Files
pmomusic/pmoqobuz/Cargo.toml

92 lines
2.3 KiB
TOML
Raw Normal View History

[package]
name = "pmoqobuz"
version = "0.1.0"
edition = "2021"
[dependencies]
2025-12-08 22:32:42 +01:00
regex = "1.12"
base64 = "0.22"
indexmap = "2.0"
2025-12-12 21:42:04 +00:00
async-trait = { version = "0.1", optional = true }
2025-12-08 22:32:42 +01:00
# HTTP client pour les requêtes à l'API Qobuz
reqwest = { version = "0.12", features = ["json", "cookies"] }
# Gestion asynchrone
tokio = { workspace = true }
# Sérialisation/Désérialisation JSON
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = { workspace = true }
# Gestion des erreurs
anyhow = { workspace = true }
thiserror = { workspace = true }
2025-12-08 22:32:42 +01:00
# Hashing pour les clés de cache et signatures
sha1 = "0.10"
hex = "0.4"
2025-12-08 22:32:42 +01:00
md-5 = "0.10"
# Cache en mémoire avec TTL
moka = { version = "0.12", features = ["future"] }
# Logging
tracing = { workspace = true }
# Gestion du temps
chrono = { workspace = true }
# Configuration
pmoconfig = { path = "../pmoconfig" }
2025-10-17 23:45:01 +02:00
# Intégration avec pmocovers pour le cache d'images (OBLIGATOIRE)
pmocovers = { path = "../pmocovers" }
2025-10-17 23:45:01 +02:00
# Intégration avec pmoaudiocache pour le cache audio (OBLIGATOIRE)
pmoaudiocache = { path = "../pmoaudiocache" }
2025-10-17 07:56:21 +02:00
# Intégration avec pmodidl pour l'export DIDL
pmodidl = { path = "../pmodidl" }
# Intégration avec pmoserver pour l'API HTTP
pmoserver = { path = "../pmoserver", optional = true }
axum = { version = "0.8", optional = true }
2025-12-12 21:42:04 +00:00
rusqlite = { version = "0.37", features = ["bundled"], optional = true }
# Documentation OpenAPI
utoipa = { version = "5.3", optional = true }
2025-10-16 22:00:35 +02:00
# Common music source traits
pmosource = { path = "../pmosource" }
2025-12-12 21:42:04 +00:00
# Playlist management
pmoplaylist = { path = "../pmoplaylist" }
2025-12-15 15:05:35 +01:00
pmocache = { path = "../pmocache" }
2025-12-12 21:42:04 +00:00
[features]
2025-12-15 15:05:35 +01:00
default = ["async-trait-support"]
# Feature pour activer les extensions pmoserver
pmoserver = ["dep:pmoserver", "dep:axum", "dep:utoipa"]
2025-10-18 09:58:39 +02:00
# Feature pour activer le support serveur (cache registry)
server = ["pmosource/server"]
2025-10-17 23:45:01 +02:00
# Feature cache (deprecated - toujours actif maintenant)
cache = []
2025-12-15 15:05:35 +01:00
async-trait-support = ["dep:async-trait"]
2025-12-12 21:42:04 +00:00
disk-cache = ["dep:rusqlite", "dep:async-trait"]
[dev-dependencies]
# Tests
tokio-test = "0.4"
mockito = "1.0"
2025-12-08 22:32:42 +01:00
tempfile = "3.0"
# Pour les exemples
tracing-subscriber = "0.3"
2025-12-08 22:32:42 +01:00
# Pour l'exemple spoofer
2025-10-17 08:19:10 +02:00
# Specify that the with_cache example requires the cache feature
[[example]]
name = "with_cache"
required-features = ["cache"]