Skip to content

Commit

Permalink
cargo: Mark some deps as optional for rpc_server feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Sep 5, 2024
1 parent 12fec6d commit 535e942
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 535e942

Please sign in to comment.