Ajout d'un client stateful avec gestion automatique du cache pour les stations et métadonnées live. Fonctionnalités principales : - Client stateful avec cache à deux niveaux (stations 7 jours, métadonnées TTL dynamique) - Support des playlists UPnP avec structures StationGroups et StationPlaylist - Gestion intelligente du TTL respectant delayToRefresh de l'API - Intégration avec pmoconfig pour le caching des stations - Support des covers via pmocovers avec fallback sur URLs Pikapi - Doctests compilés avec contexte async complet - Feature playlist avec dépendance pmodidl Corrections et améliorations : - Ajout d'un variant Error::Config pour conversion automatique - Gestion propre des erreurs avec conversion anyhow::Error - Tests unitaires et d'intégration (26/26 passés) - Optimisations : pooling de connexions HTTP, préchargement intelligent Les stations sont organisées hiérarchiquement : standalone, groupes avec webradios, radios locales ICI (ex-France Bleu) Les métadonnées sont mises à jour dynamiquement avec respect des intervalles de polling
84 lines
2.1 KiB
TOML
84 lines
2.1 KiB
TOML
[package]
|
|
name = "pmoradiofrance"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["PMOMusic Contributors"]
|
|
description = "Rust client for Radio France streaming services"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/yourusername/pmomusic"
|
|
keywords = ["radio", "france", "streaming", "music", "aac"]
|
|
categories = ["multimedia", "api-bindings"]
|
|
|
|
[dependencies]
|
|
# HTTP client for Radio France API requests
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
|
|
# Async runtime
|
|
tokio = { workspace = true }
|
|
|
|
# Serialization/Deserialization
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
serde_yaml = { workspace = true }
|
|
|
|
# Helpers
|
|
chrono = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
|
|
# Error handling
|
|
thiserror = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
|
|
# Logging
|
|
tracing = { workspace = true }
|
|
|
|
# URL manipulation
|
|
url = "2.5"
|
|
|
|
# HTML scraping for station discovery
|
|
scraper = "0.22"
|
|
regex = "1.11"
|
|
|
|
# Common music source traits
|
|
pmosource = { path = "../pmosource" }
|
|
|
|
# DIDL-Lite structures (for playlist support)
|
|
pmodidl = { path = "../pmodidl", optional = true }
|
|
|
|
# Configuration support
|
|
pmoconfig = { path = "../pmoconfig", optional = true }
|
|
|
|
# Cache support
|
|
pmocovers = { path = "../pmocovers", optional = true }
|
|
pmoaudiocache = { path = "../pmoaudiocache", optional = true }
|
|
|
|
# Playlist management for FIFO support
|
|
pmoplaylist = { path = "../pmoplaylist", optional = true }
|
|
|
|
[features]
|
|
default = ["pmoconfig"]
|
|
# Feature for pmoconfig support
|
|
pmoconfig = ["dep:pmoconfig"]
|
|
# Feature for cache support
|
|
cache = ["dep:pmocovers", "dep:pmoaudiocache"]
|
|
# Feature for playlist/FIFO support
|
|
playlist = ["dep:pmoplaylist", "dep:pmodidl"]
|
|
# Feature for logging (tracing)
|
|
logging = []
|
|
# Feature for server support (cache registry)
|
|
server = ["pmosource/server", "pmoconfig", "cache", "playlist"]
|
|
# Full feature set
|
|
full = ["server", "logging"]
|
|
|
|
[dev-dependencies]
|
|
tokio-test = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
|
|
[[example]]
|
|
name = "discover_stations"
|
|
path = "examples/discover_stations.rs"
|
|
|
|
[[example]]
|
|
name = "live_metadata"
|
|
path = "examples/live_metadata.rs"
|