musichoard/Cargo.toml

68 lines
2.1 KiB
TOML
Raw Normal View History

2023-03-29 05:49:59 +09:00
[package]
name = "musichoard"
version = "1.0.0-alpha"
2023-03-29 05:49:59 +09:00
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
aho-corasick = { version = "1.1.3" }
crossterm = { version = "0.28.1", optional = true}
once_cell = { version = "1.20.2" }
openssh = { version = "0.11.4", features = ["native-mux"], default-features = false, optional = true}
paste = { version = "1.0.15", optional = true }
ratatui = { version = "0.29.0", optional = true}
reqwest = { version = "0.12.12", features = ["blocking", "json"], optional = true }
2025-01-10 19:25:40 +01:00
rusqlite = { version = "0.32.1", optional = true }
serde = { version = "1.0.217", features = ["derive"], optional = true }
serde_json = { version = "1.0.134", optional = true}
structopt = { version = "0.3.26", optional = true}
tokio = { version = "1.42.0", features = ["rt"], optional = true}
# ratatui/crossterm dependency version must match with musichhoard's ratatui/crossterm
tui-input = { version = "0.11.1", optional = true }
url = { version = "2.5.4" }
uuid = { version = "1.11.0" }
[build-dependencies]
2025-01-10 19:20:29 +01:00
version_check = "0.9.5"
[dev-dependencies]
2025-01-10 19:20:29 +01:00
mockall = "0.13.1"
tempfile = "3.15.0"
[features]
default = ["database-json", "library-beets"]
bin = ["structopt"]
2025-01-11 16:02:47 +01:00
database-sqlite = ["rusqlite", "serde", "serde_json"]
database-json = ["serde", "serde_json"]
library-beets = []
library-beets-ssh = ["openssh", "tokio"]
musicbrainz = ["paste", "reqwest", "serde", "serde_json"]
tui = ["crossterm", "ratatui", "tui-input"]
[[bin]]
name = "musichoard"
required-features = ["bin", "database-json", "library-beets", "library-beets-ssh", "musicbrainz", "tui"]
[[bin]]
name = "musichoard-edit"
required-features = ["bin", "database-json"]
[[example]]
name = "musicbrainz-api---browse"
path = "examples/musicbrainz_api/browse.rs"
required-features = ["bin", "musicbrainz"]
[[example]]
name = "musicbrainz-api---lookup"
path = "examples/musicbrainz_api/lookup.rs"
required-features = ["bin", "musicbrainz"]
[[example]]
name = "musicbrainz-api---search"
path = "examples/musicbrainz_api/search.rs"
required-features = ["bin", "musicbrainz"]
[package.metadata.docs.rs]
all-features = true