Implement Phase 1: Foundation and cache system

- Add Cargo project with TUI and async dependencies
- Implement cache-only architecture for low bandwidth operation
- Add file scanner with media type detection
- Create two-panel TUI layout (file tree and status)
- Add config file support for scan path management
- Implement XDG-compliant cache and config directories
- Add Gitea CI/CD workflow for automated releases
This commit is contained in:
2025-12-06 12:32:17 +01:00
parent a1fd8eb6e5
commit 7ce264fd96
11 changed files with 1007 additions and 0 deletions

38
Cargo.toml Normal file
View File

@@ -0,0 +1,38 @@
[package]
name = "cm-player"
version = "0.1.0"
edition = "2021"
[dependencies]
# TUI
ratatui = "0.28"
crossterm = "0.28"
# Async runtime
tokio = { version = "1.40", features = ["full"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"
# File system
walkdir = "2.5"
dirs = "5.0"
# MPV player
libmpv = "2.0"
# Error handling
anyhow = "1.0"
thiserror = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = "0.3"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true