Skip to content
Draft
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
2 changes: 2 additions & 0 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- run: cargo build
- run: cargo build --features serial
- run: cargo test --lib # integration tests requires binaries for the test env...
# `silentpayments` is opt-in, so the default build above never compiles it.
- run: cargo test --lib -p lwk_common -p lwk_signer -p lwk_wollet --features lwk_common/silentpayments,lwk_signer/silentpayments,lwk_wollet/silentpayments

nix:
runs-on: ubuntu-22.04
Expand Down
25 changes: 13 additions & 12 deletions Cargo.lock

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

6 changes: 6 additions & 0 deletions lwk_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ serde_json.workspace = true
default = ["amp0"]
amp0 = []
sqlite = ["rusqlite"]
# Silent Payments (BIP-352) boundary types shared between `lwk_wollet` (the
# wallet/scan side) and `lwk_signer` (the signing side). Living here rather than in
# either crate is what lets a wallet depend on the shared types without depending on
# a signer, and vice versa — see `SilentPaymentScanMaterial`'s docs for why that
# split matters.
silentpayments = []

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rusqlite = { version = "0.32", optional = true, features = ["bundled"] }
Expand Down
3 changes: 3 additions & 0 deletions lwk_common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ mod pset;
mod qr;
mod segwit;
mod signer;
#[cfg(feature = "silentpayments")]
#[cfg_attr(docsrs, doc(cfg(feature = "silentpayments")))]
pub mod silentpayments;
#[cfg(all(feature = "sqlite", not(target_arch = "wasm32")))]
pub mod sqlite;
mod store;
Expand Down
Loading