New persist module in the binary crate (lib stays zero-dep): FileConfig loaded from a platform-appropriate config path via the directories crate, with resolution precedence CLI/env (clap) > config.toml > built-in defaults. Clap defaults move into the resolver so the file layer can sit between.
34 lines
766 B
TOML
34 lines
766 B
TOML
[package]
|
|
name = "soulseek-rs"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Command-line client for Soulseek protocol"
|
|
keywords = ["soulseek", "p2p", "client", "file-sharing"]
|
|
categories = ["command-line-utilities"]
|
|
|
|
[[bin]]
|
|
name = "soulseek-rs"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
soulseek-rs-lib = { version = "5.0.0", path = "../soulseek-rs-lib" }
|
|
|
|
clap = { version = "4.6.2", features = ["derive", "color", "wrap_help", "env"] }
|
|
ratatui = "0.30.2"
|
|
color-eyre = "0.6.5"
|
|
dotenv = "0.15.0"
|
|
igd-next = "0.17"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
toml = "0.9"
|
|
directories = "6"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|