From fad49a48b8d251ef3c2cc958ade6f18e6305b645 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 10 Feb 2024 20:38:14 +0100 Subject: [PATCH] Make serde dependency optional (#128) Closes #127 Reviewed-on: https://git.thenineworlds.net/wojtek/musichoard/pulls/128 --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 08f4ddf..cfbe4ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"]