Migration vers une forme unifiée des cargos

This commit is contained in:
2025-12-30 16:12:30 +01:00
parent 64450185c5
commit a4301140d8
45 changed files with 989 additions and 132 deletions

View File

@@ -21,20 +21,20 @@ pmoconfig = { path = "../pmoconfig", optional = true }
rusqlite = { version = "0.37", features = ["bundled"] }
# Utilitaires
anyhow = "1.0"
thiserror = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = { workspace = true }
thiserror = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
# Async
tokio = { version = "1.0", features = ["full"] }
tokio = { workspace = true }
# Singleton
once_cell = "1.20"
# Logging
tracing = "0.1"
chrono = { version = "0.4", features = ["serde"] }
tracing = { workspace = true }
chrono = { workspace = true }
axum = { version = "0.8", optional = true, features = ["macros", "json"] }
tokio-stream = { version = "0.1", optional = true, features = ["sync"] }
utoipa = { version = "5.4", optional = true, features = ["axum_extras", "chrono"] }

View File

@@ -0,0 +1,46 @@
[package]
name = "pmoplaylist"
version = "0.1.0"
edition = "2021"
[dependencies]
# Caches PMO
pmoaudiocache = { path = "../pmoaudiocache" }
pmocache = { path = "../pmocache" }
# Métadonnées
pmometadata = { path = "../pmometadata" }
# DIDL-Lite pour UPnP
pmodidl = { path = "../pmodidl" }
# Configuration (optionnelle)
pmoconfig = { path = "../pmoconfig", optional = true }
# Base de données
rusqlite = { version = "0.37", features = ["bundled"] }
# Utilitaires
anyhow = "1.0"
thiserror = "2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Async
tokio = { version = "1.0", features = ["full"] }
# Singleton
once_cell = "1.20"
# Logging
tracing = "0.1"
chrono = { version = "0.4", features = ["serde"] }
axum = { version = "0.8", optional = true, features = ["macros", "json"] }
tokio-stream = { version = "0.1", optional = true, features = ["sync"] }
utoipa = { version = "5.4", optional = true, features = ["axum_extras", "chrono"] }
async-stream = { version = "0.3", optional = true }
[features]
default = ["pmoconfig"]
pmoconfig = ["dep:pmoconfig"]
pmoserver = ["dep:axum", "dep:tokio-stream", "dep:utoipa", "dep:async-stream"]