2025-10-11 15:59:43 +02:00
|
|
|
[package]
|
|
|
|
|
name = "pmoqobuz"
|
|
|
|
|
version = "0.1.0"
|
2026-04-05 14:06:32 +02:00
|
|
|
edition = "2024"
|
2025-10-11 15:59:43 +02:00
|
|
|
|
|
|
|
|
[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
|
|
|
|
2025-10-11 15:59:43 +02:00
|
|
|
# HTTP client pour les requêtes à l'API Qobuz
|
|
|
|
|
reqwest = { version = "0.12", features = ["json", "cookies"] }
|
|
|
|
|
|
|
|
|
|
# Gestion asynchrone
|
2025-12-30 16:12:30 +01:00
|
|
|
tokio = { workspace = true }
|
2025-10-11 15:59:43 +02:00
|
|
|
|
|
|
|
|
# Sérialisation/Désérialisation JSON
|
2025-12-30 16:12:30 +01:00
|
|
|
serde = { workspace = true }
|
|
|
|
|
serde_json = { workspace = true }
|
|
|
|
|
serde_yaml = { workspace = true }
|
2025-10-11 15:59:43 +02:00
|
|
|
|
|
|
|
|
# Gestion des erreurs
|
2025-12-30 16:12:30 +01:00
|
|
|
anyhow = { workspace = true }
|
|
|
|
|
thiserror = { workspace = true }
|
2025-10-11 15:59:43 +02:00
|
|
|
|
2025-12-08 22:32:42 +01:00
|
|
|
# Hashing pour les clés de cache et signatures
|
2025-10-11 15:59:43 +02:00
|
|
|
sha1 = "0.10"
|
|
|
|
|
hex = "0.4"
|
2025-12-08 22:32:42 +01:00
|
|
|
md-5 = "0.10"
|
2025-10-11 15:59:43 +02:00
|
|
|
|
2026-06-11 08:46:11 +02:00
|
|
|
# Crypto CMAF (AES-CTR déchiffrement frames, AES-CBC dérobage clé, HKDF dérivation)
|
|
|
|
|
aes = "0.8"
|
|
|
|
|
cbc = "0.1"
|
|
|
|
|
ctr = "0.9"
|
|
|
|
|
hkdf = "0.12"
|
|
|
|
|
sha2 = "0.10"
|
|
|
|
|
|
2025-10-11 15:59:43 +02:00
|
|
|
# Cache en mémoire avec TTL
|
|
|
|
|
moka = { version = "0.12", features = ["future"] }
|
|
|
|
|
|
2026-06-11 08:46:11 +02:00
|
|
|
|
2025-10-11 15:59:43 +02:00
|
|
|
# Logging
|
2025-12-30 16:12:30 +01:00
|
|
|
tracing = { workspace = true }
|
2025-10-11 15:59:43 +02:00
|
|
|
|
|
|
|
|
# Gestion du temps
|
2025-12-30 16:12:30 +01:00
|
|
|
chrono = { workspace = true }
|
2025-10-11 15:59:43 +02:00
|
|
|
|
|
|
|
|
# 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-11 15:59:43 +02:00
|
|
|
|
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
|
|
|
|
2025-10-11 15:59:43 +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 }
|
2026-06-11 09:36:21 +02:00
|
|
|
tokio-util = { workspace = true, optional = true }
|
2025-12-12 21:42:04 +00:00
|
|
|
rusqlite = { version = "0.37", features = ["bundled"], optional = true }
|
2025-10-11 15:59:43 +02:00
|
|
|
|
|
|
|
|
# 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
|
|
|
|
2025-10-11 15:59:43 +02:00
|
|
|
[features]
|
2025-12-15 15:05:35 +01:00
|
|
|
default = ["async-trait-support"]
|
2025-10-11 15:59:43 +02:00
|
|
|
# Feature pour activer les extensions pmoserver
|
2026-06-11 09:36:21 +02:00
|
|
|
pmoserver = ["dep:pmoserver", "dep:axum", "dep:utoipa", "dep:tokio-util"]
|
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"]
|
2025-10-11 15:59:43 +02:00
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
|
# Tests
|
|
|
|
|
tokio-test = "0.4"
|
|
|
|
|
mockito = "1.0"
|
2025-12-08 22:32:42 +01:00
|
|
|
tempfile = "3.0"
|
2025-10-11 15:59:43 +02:00
|
|
|
# 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"]
|