cm-player/Cargo.toml
Christoffer Martinsson 4529fad61d
All checks were successful
Build and Release / build-and-release (push) Successful in 50s
Reduce memory usage by ~50 MB for large libraries
FlattenedItem now stores only essential fields (path, name, is_dir, depth)
instead of cloning entire FileTreeNode structures. For 500,000 files, this
reduces memory from ~100 MB to ~50 MB for the flattened view.

- Extract only needed fields in flatten_tree()
- Add find_node_by_path() helper to look up full nodes when needed
- Update all UI and state code to use new structure
2025-12-11 19:39:26 +01:00

39 lines
512 B
TOML

[package]
name = "cm-player"
version = "0.1.24"
edition = "2021"
[dependencies]
# TUI
ratatui = "0.28"
crossterm = "0.28"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"
# File system
walkdir = "2.5"
dirs = "5.0"
# MPV player (via IPC)
tempfile = "3.14"
# Error handling
anyhow = "1.0"
thiserror = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = "0.3"
# Random
rand = "0.8"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true