From 535e94207aaaa06c713d34ebebccb08b13cd3b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ceyhun=20=C5=9Een?= Date: Thu, 5 Sep 2024 15:04:52 +0300 Subject: [PATCH] cargo: Mark some deps as optional for rpc_server feature. --- Cargo.toml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1b6cde3..a21c00f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,13 +13,16 @@ thiserror = "1.0.63" bitcoin-scriptexec = { git = "https://github.com/Bitcoin-Wildlife-Sanctuary/rust-bitcoin-scriptexec" } rusqlite = { version = "0.32.1", features = ["bundled"] } rs_merkle = "1.4" -jsonrpsee = { version = "0.24.3", features = ["server", "client", "macros"], default-features = false } -tokio = { version = "1.39.3", features = ["full"]} tracing = "0.1.40" tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } -tower = "0.4.13" clap = { version = "4.5.16", features = ["derive"] } +jsonrpsee = { version = "0.24.3", features = ["server", "client", "macros"], default-features = false, optional = true } +tokio = { version = "1.39.3", features = ["full"], optional = true } +tower = { version = "0.4.13", optional = true } + +[dev-dependencies] +tokio = { version = "1.39.3", features = ["full"] } [features] # Enables RPC server interface. Note: Not stable nor complete. Use it in your own caution. -rpc_server = [] +rpc_server = ["dep:jsonrpsee", "dep:tokio", "dep:tower"]