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

Closes #127

Reviewed-on: #128
This commit is contained in:
Wojciech Kozlowski 2024-02-10 20:38:14 +01:00
parent 36b4918a44
commit fad49a48b8

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"]