- Remplacer les Arc+Box::pin manuels par la macro action_handler!(captures(...)) - Supprimer helpers locaux dupliqués dans renderer.rs (add_var, add_action) - Extraire handlers génériques pour GET requests - Factoriser extraction metadata dans set_uri_handler /set_next_uriHandler - Simplifier build_renderingcontrol en retirant pipeline inutile - Mettre à jour edition Rust de 2021 vers 2024 dans tous les Cargo.toml - Corriger pattern matching inutile `ref` sur déréférencement dans pmoaudio et pmoflac
58 lines
1.3 KiB
TOML
58 lines
1.3 KiB
TOML
[package]
|
|
name = "pmoaudiocache"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
# Cache générique
|
|
pmocache = { path = "../pmocache" }
|
|
|
|
# DIDL-Lite pour UPnP
|
|
pmodidl = { path = "../pmodidl" }
|
|
|
|
# Streaming FLAC asynchrone
|
|
pmoflac = { path = "../pmoflac" }
|
|
pmometadata = { path = "../pmometadata" }
|
|
|
|
# Base de données
|
|
rusqlite = { version = "0.37", features = ["bundled"] }
|
|
chrono = { workspace = true }
|
|
|
|
# Métadonnées audio
|
|
lofty = "0.22"
|
|
|
|
# Outils de streaming
|
|
futures-util = "0.3"
|
|
bytes = "1.0"
|
|
|
|
# Utilitaires
|
|
anyhow = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
quick-xml = { workspace = true }
|
|
paste = "1.0"
|
|
async-trait = { workspace = true }
|
|
|
|
# Async
|
|
tokio = { workspace = true }
|
|
|
|
# Singleton
|
|
once_cell = "1.20"
|
|
|
|
# Serveur HTTP (optionnel pour l'extension)
|
|
pmoserver = { path = "../pmoserver", optional = true }
|
|
pmoconfig = { path = "../pmoconfig", optional = true }
|
|
axum = { version = "0.8", optional = true }
|
|
utoipa = { version = "5.3", features = ["axum_extras"], optional = true }
|
|
|
|
tracing = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tracing-subscriber = "0.3"
|
|
tempfile = "3"
|
|
|
|
[features]
|
|
default = ["pmoserver"]
|
|
pmoconfig = ["dep:pmoconfig", "pmocache/pmoconfig"]
|
|
pmoserver = ["pmoconfig", "dep:pmoserver", "dep:axum", "dep:utoipa", "pmocache/pmoserver", "pmocache/openapi"]
|