Files
pmomusic/pmoparadise/Cargo.toml

116 lines
3.0 KiB
TOML
Raw Normal View History

2025-10-12 19:52:41 +02:00
[package]
name = "pmoparadise"
version = "0.1.0"
edition = "2021"
authors = ["PMOMusic Contributors"]
description = "Rust client for Radio Paradise streaming service"
license = "MIT OR Apache-2.0"
repository = "https://github.com/yourusername/pmomusic"
keywords = ["radio", "paradise", "streaming", "music", "flac"]
categories = ["multimedia", "api-bindings"]
[dependencies]
# HTTP client pour les requêtes à l'API Radio Paradise
reqwest = { version = "0.12", features = ["json", "stream"] }
# Gestion asynchrone
tokio = { version = "1", features = ["full"] }
# Sérialisation/Désérialisation JSON
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
2025-10-21 14:21:17 +02:00
serde_yaml = "0.9"
# Helpers
chrono = { version = "0.4", features = ["serde"] }
async-trait = "0.1"
sha2 = "0.10"
hex = "0.4"
tokio-util = { version = "0.7", features = ["io"] }
async-stream = "0.3"
rusqlite = { version = "0.37", features = ["bundled"] }
2025-10-12 19:52:41 +02:00
# Gestion des erreurs
thiserror = "1.0"
anyhow = "1.0"
# Streaming de bytes
bytes = "1.5"
futures = "0.3"
flacenc = "0.4"
2025-10-12 19:52:41 +02:00
2025-10-17 23:45:01 +02:00
# Logging
tracing = "0.1"
2025-10-12 19:52:41 +02:00
# URL manipulation
url = "2.5"
# Audio decoding/encoding
symphonia = { version = "0.5", features = ["all"] }
# Audio decoding - claxon for FLAC streaming
claxon = "0.4"
2025-10-12 19:52:41 +02:00
# Per-track feature dependencies
hound = { version = "3.5", optional = true }
tempfile = { version = "3.8", optional = true }
2025-10-16 22:00:35 +02:00
# Common music source traits
pmosource = { path = "../pmosource" }
2025-10-16 22:13:00 +02:00
# Playlist management for FIFO support
pmoplaylist = { path = "../pmoplaylist" }
2025-10-26 13:44:41 +01:00
pmoconfig = { path = "../pmoconfig", optional = true }
2025-10-16 22:13:00 +02:00
2025-10-17 23:45:01 +02:00
# Cache support (OBLIGATOIRE - architecture refactorisée)
pmocovers = { path = "../pmocovers" }
pmoaudiocache = { path = "../pmoaudiocache" }
2025-10-16 22:13:00 +02:00
2025-10-26 07:41:03 +01:00
# pmoserver extension support
pmoserver = { path = "../pmoserver", optional = true }
2025-10-19 01:01:33 +02:00
utoipa = { version = "5.4.0", optional = true }
axum = { version = "0.8.4", optional = true }
2025-10-12 19:52:41 +02:00
[features]
2025-10-26 13:44:41 +01:00
default = ["metadata-only", "pmoconfig"]
2025-10-12 19:52:41 +02:00
# Mode métadonnées seules (pas de décodage FLAC)
metadata-only = []
# Active l'extraction par-track (WAV export, etc.)
per-track = ["dep:hound", "dep:tempfile"]
2025-10-19 01:01:33 +02:00
# Active l'API REST pmoserver
2025-10-21 14:21:17 +02:00
pmoserver = ["dep:pmoserver", "dep:utoipa", "dep:axum", "server"]
2025-10-18 09:58:39 +02:00
# Feature pour activer le support serveur (cache registry)
2025-10-26 13:44:41 +01:00
server = ["pmosource/server", "pmoconfig"]
# Feature pour activer le support de pmoconfig
pmoconfig = ["dep:pmoconfig"]
2025-10-17 23:45:01 +02:00
# Feature cache (deprecated - toujours actif maintenant)
cache = []
2025-10-12 19:52:41 +02:00
[dev-dependencies]
# Tests
tokio-test = "0.4"
wiremock = "0.6"
# Pour les exemples avec logging
tracing-subscriber = "0.3"
2025-10-16 22:13:00 +02:00
# Pour l'exemple with_cache
pmocovers = { path = "../pmocovers" }
pmoaudiocache = { path = "../pmoaudiocache" }
2025-10-12 19:52:41 +02:00
[[example]]
name = "now_playing"
path = "examples/now_playing.rs"
[[example]]
name = "stream_block"
path = "examples/stream_block.rs"
[[example]]
name = "extract_track"
path = "examples/extract_track.rs"
required-features = ["per-track"]
2025-10-16 22:13:00 +02:00
[[example]]
name = "with_cache"
path = "examples/with_cache.rs"
required-features = ["cache"]