From 01391fb5de5c3309b3e24b724efce6e4c58ea1af Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 23 Jul 2026 13:23:08 -0400 Subject: [PATCH] build: add optional bdk_sp dependency --- bdk-ffi/Cargo.lock | 10 ++++++++++ bdk-ffi/Cargo.toml | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/bdk-ffi/Cargo.lock b/bdk-ffi/Cargo.lock index 5cd2a13e..c643dbbf 100644 --- a/bdk-ffi/Cargo.lock +++ b/bdk-ffi/Cargo.lock @@ -147,6 +147,7 @@ dependencies = [ "bdk_electrum", "bdk_esplora", "bdk_kyoto", + "bdk_sp", "bdk_wallet", "thiserror", "uniffi", @@ -206,6 +207,15 @@ dependencies = [ "bip157", ] +[[package]] +name = "bdk_sp" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c401af00a119ceee1bd9aa35dd15c9130b5d8381003b141fb5456a938ab8efed" +dependencies = [ + "bitcoin", +] + [[package]] name = "bdk_wallet" version = "3.1.0" diff --git a/bdk-ffi/Cargo.toml b/bdk-ffi/Cargo.toml index 3f9fdc8f..868f6eda 100644 --- a/bdk-ffi/Cargo.toml +++ b/bdk-ffi/Cargo.toml @@ -14,7 +14,11 @@ name = "bdkffi" name = "uniffi-bindgen" path = "uniffi-bindgen.rs" +[features] +experimental-silent-payments = ["dep:bdk_sp"] + [dependencies] +bdk_sp = { version = "0.2.0", optional = true } bdk_wallet = { version = "=3.1.0", features = ["all-keys", "keys-bip39", "rusqlite"] } bdk_esplora = { version = "0.22.2", default-features = false, features = ["std", "blocking", "blocking-https-rustls"] } bdk_electrum = { version = "0.24.0", default-features = false, features = ["use-rustls-ring"] }