From bef5ff5c49d503f4569346dca5c7249f09ed5c9a Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Tue, 7 Nov 2023 13:50:53 +0100 Subject: [PATCH] fix: compile error with optional nuts --- bindings/cashu-sdk-ffi/Cargo.toml | 4 +--- crates/cashu-sdk/src/client/blocking.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bindings/cashu-sdk-ffi/Cargo.toml b/bindings/cashu-sdk-ffi/Cargo.toml index b4c38733..658704f5 100644 --- a/bindings/cashu-sdk-ffi/Cargo.toml +++ b/bindings/cashu-sdk-ffi/Cargo.toml @@ -9,14 +9,12 @@ rust-version.workspace = true name = "cashu_sdk_ffi" crate-type = ["cdylib", "staticlib"] - [dependencies] cashu-ffi = { path = "../cashu-ffi" } -cashu-sdk = { path = "../../crates/cashu-sdk", default-features = false, features = ["wallet", "mint", "blocking"] } +cashu-sdk = { path = "../../crates/cashu-sdk", default-features = false, features = ["wallet", "mint", "blocking", "nut07", "nut09"] } tracing = { workspace = true } tracing-subscriber = { workspace = true } uniffi = { workspace = true } [build-dependencies] uniffi = { workspace = true, features = ["build"] } - diff --git a/crates/cashu-sdk/src/client/blocking.rs b/crates/cashu-sdk/src/client/blocking.rs index 1f802722..66642022 100644 --- a/crates/cashu-sdk/src/client/blocking.rs +++ b/crates/cashu-sdk/src/client/blocking.rs @@ -68,7 +68,7 @@ impl Client { #[cfg(feature = "nut07")] pub fn check_spendable( &self, - proofs: &Vec, + proofs: &Vec, ) -> Result { RUNTIME.block_on(async { self.client.check_spendable(proofs).await }) }