Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions Cargo.lock.msrv

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ cdk-mintd = { path = "./crates/cdk-mintd", version = "=0.17.0", default-features
cdk-prometheus = { path = "./crates/cdk-prometheus", version = "=0.17.0", default-features = false }
cdk-supabase = { path = "./crates/cdk-supabase", version = "=0.17.0", default-features = false }
cdk-npubcash = { path = "./crates/cdk-npubcash", default-features = false, version = "=0.17.0" }
cdk-nwc = { path = "./crates/cdk-nwc", version = "=0.17.0" }
cdk-bdk = { path = "./crates/cdk-bdk", version = "=0.17.0", default-features = false }
clap = { version = "4.5.31", features = ["derive"] }
ciborium = { version = "0.2.2", default-features = false, features = ["std"] }
Expand Down Expand Up @@ -127,6 +128,7 @@ prometheus = { version = "0.13.4", features = ["process"], default-features = fa
nostr-sdk = { version = "0.44.1", default-features = false, features = [
"nip04",
"nip44",
"nip47",
"nip59"
]}
bitcoin-payment-instructions = { version = "0.7.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion bindings/dart/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name = "uniffi-bindgen"
path = "uniffi-bindgen.rs"

[dependencies]
cdk-ffi = { workspace = true, features = ["npubcash", "bip353"] }
cdk-ffi = { workspace = true, features = ["npubcash", "nwc", "bip353"] }
uniffi = { workspace = true, features = ["cli"] }
uniffi-dart = { git = "https://github.com/Uniffi-Dart/uniffi-dart", tag = "v0.1.0+v0.30.0" }
camino = "1.2"
Expand Down
2 changes: 1 addition & 1 deletion bindings/go/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ crate-type = ["cdylib"]
name = "cdk_ffi_go"

[dependencies]
cdk-ffi = { workspace = true, features = ["npubcash", "bip353"] }
cdk-ffi = { workspace = true, features = ["npubcash", "nwc", "bip353"] }
uniffi = { workspace = true, features = ["cli"] }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion bindings/kotlin/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name = "uniffi-bindgen"
path = "uniffi-bindgen.rs"

[dependencies]
cdk-ffi = { workspace = true, default-features = false, features = ["npubcash", "bip353"] }
cdk-ffi = { workspace = true, default-features = false, features = ["npubcash", "nwc", "bip353"] }
uniffi = { workspace = true, features = ["cli"] }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion bindings/swift/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name = "uniffi-bindgen-swift"
path = "uniffi-bindgen-swift.rs"

[dependencies]
cdk-ffi = { workspace = true, default-features = false, features = ["npubcash", "bip353"] }
cdk-ffi = { workspace = true, default-features = false, features = ["npubcash", "nwc", "bip353"] }
uniffi = { workspace = true, features = ["cli"] }


Expand Down
6 changes: 5 additions & 1 deletion crates/cdk-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ cdk-sqlite = { workspace = true }
cdk-postgres = { workspace = true, optional = true }
cdk-supabase = { workspace = true, optional = true, features = ["wallet"] }
cdk-npubcash = { workspace = true, optional = true }
cdk-nwc = { workspace = true, optional = true }
nostr-sdk = { workspace = true, optional = true }
tokio-util = { workspace = true, optional = true }
futures = { workspace = true }
once_cell = { workspace = true }
rand = { workspace = true }
Expand All @@ -43,14 +45,16 @@ log = "0.4"


[features]
default = ["npubcash", "bip353"]
default = ["npubcash", "nwc", "bip353"]
Comment thread
thesimplekid marked this conversation as resolved.
bip353 = ["cdk/bip353"]
# Enable Postgres-backed wallet database support in FFI
postgres = ["cdk-postgres"]
# Enable Supabase-backed wallet database support in FFI
supabase = ["cdk-supabase"]
# Enable NpubCash client bindings
npubcash = ["cdk/npubcash", "cdk-npubcash", "nostr-sdk"]
# Enable Nostr Wallet Connect (NIP-47) wallet service bindings
nwc = ["cdk/nwc", "cdk-nwc", "nostr-sdk", "dep:tokio-util"]

[dev-dependencies]

Expand Down
4 changes: 4 additions & 0 deletions crates/cdk-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pub mod error;
pub mod logging;
#[cfg(feature = "npubcash")]
pub mod npubcash;
#[cfg(feature = "nwc")]
pub mod nwc;
#[cfg(feature = "postgres")]
pub mod postgres;
mod runtime;
Expand All @@ -29,6 +31,8 @@ pub use error::*;
pub use logging::*;
#[cfg(feature = "npubcash")]
pub use npubcash::*;
#[cfg(feature = "nwc")]
pub use nwc::*;
pub use types::*;
pub use wallet::*;
pub use wallet_repository::*;
Expand Down
Loading
Loading