From 1f1e2f259840a215c865a1afaf9be76187f50a82 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Sun, 16 Feb 2025 21:08:39 +0100 Subject: [PATCH] chore: support feature flags for indexers --- Cargo.toml | 4 ++++ cli/Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6d06a66..a739271 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,8 +86,12 @@ default = ["std"] all = [ "std", "serde", "log", "fs", + "electrum", "esplora", "mempool" ] std = [] +electrum = ["bp-wallet/electrum"] +esplora = ["bp-wallet/esplora"] +mempool = ["bp-wallet/mempool"] fs = [ "std", "serde", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 3ebcfb6..4959a63 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -19,7 +19,7 @@ name = "rgb" amplify.workspace = true strict_encoding.workspace = true strict_types.workspace = true -bp-wallet = { workspace = true, features = ["fs", "serde", "cli"] } +bp-wallet = { workspace = true, features = ["fs", "serde", "cli", "electrum", "esplora", "mempool"] } bp-electrum = { workspace = true } bp-esplora = { workspace = true } rgb-std = { workspace = true, features = ["fs", "uri", "serde"] }