Make serde dependency optional
All checks were successful
Cargo CI / Lint (pull_request) Successful in 42s
Cargo CI / Build and Test (pull_request) Successful in 1m1s

This commit is contained in:
Wojciech Kozlowski 2024-02-10 20:36:05 +01:00
parent 36b4918a44
commit 85ba560e20

View File

@ -9,7 +9,7 @@ edition = "2021"
crossterm = { version = "0.26.1", optional = true}
openssh = { version = "0.9.9", features = ["native-mux"], default-features = false, optional = true}
ratatui = { version = "0.20.1", optional = true}
serde = { version = "1.0.159", features = ["derive"] }
serde = { version = "1.0.159", features = ["derive"], optional = true }
serde_json = { version = "1.0.95", optional = true}
structopt = { version = "0.3.26", optional = true}
tokio = { version = "1.27.0", features = ["rt"], optional = true}
@ -24,7 +24,7 @@ tempfile = "3.5.0"
[features]
default = ["database-json", "library-beets"]
bin = ["structopt"]
database-json = ["serde_json"]
database-json = ["serde", "serde_json"]
library-beets = []
ssh-library = ["openssh", "tokio"]
tui = ["crossterm", "ratatui"]