- 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
55 lines
1.7 KiB
TOML
55 lines
1.7 KiB
TOML
[package]
|
|
name = "pmosource"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
authors = ["PMOMusic Contributors"]
|
|
description = "Common traits and types for PMOMusic sources"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/yourusername/pmomusic"
|
|
keywords = ["music", "source", "streaming"]
|
|
categories = ["multimedia"]
|
|
|
|
[dependencies]
|
|
# Gestion des erreurs
|
|
thiserror = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
|
|
# Async traits
|
|
async-trait = { workspace = true }
|
|
|
|
# Async runtime
|
|
tokio = { workspace = true, features = ["sync", "time"] }
|
|
|
|
# DIDL-Lite support
|
|
pmodidl = { path = "../pmodidl" }
|
|
|
|
# Playlist/FIFO support
|
|
pmoplaylist = { path = "../pmoplaylist" }
|
|
|
|
# Optional cache integrations
|
|
pmoaudiocache = { path = "../pmoaudiocache", optional = true }
|
|
pmocovers = { path = "../pmocovers", optional = true }
|
|
pmocache = { path = "../pmocache", optional = true }
|
|
|
|
# Serialization (required for cache metadata)
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
# Server extension (optional)
|
|
pmoserver = { path = "../pmoserver", optional = true }
|
|
pmoconfig = { path = "../pmoconfig", optional = true }
|
|
pmoupnp = { path = "../pmoupnp", optional = true }
|
|
|
|
# Web framework for API (optional)
|
|
axum = { version = "0.8", optional = true }
|
|
utoipa = { version = "5.3", optional = true }
|
|
tracing = { version = "0.1", optional = true }
|
|
lazy_static = { version = "1.4", optional = true }
|
|
tokio-stream = { version = "0.1", optional = true, features = ["time"] }
|
|
futures = { version = "0.3", optional = true }
|
|
|
|
[features]
|
|
default = ["cache"]
|
|
cache = ["pmoaudiocache", "pmocovers", "pmocache"]
|
|
server = ["pmoserver", "pmoconfig", "pmoupnp", "axum", "utoipa", "tracing", "lazy_static", "tokio-stream", "futures"]
|