Make serde dependency optional #128

Merged
wojtek merged 1 commits from 127---make-serde-dependency-optional into main 2024-02-10 20:38:15 +01:00

View File

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