breez_sdk_spark/
lib.rs

1#[cfg(feature = "uniffi")]
2mod bindings;
3mod chain;
4mod error;
5mod events;
6mod logger;
7mod models;
8mod persist;
9mod sdk;
10mod sdk_builder;
11mod utils;
12
13#[cfg(feature = "uniffi")]
14pub use bindings::*;
15pub use breez_sdk_common::input::*;
16pub use chain::{BitcoinChainService, ChainServiceError, rest_client::RestClientChainService};
17pub use error::{DepositClaimError, SdkError};
18pub use events::{EventEmitter, EventListener, SdkEvent};
19pub use models::*;
20pub use persist::{PaymentMetadata, Storage, StorageError, UpdateDepositPayload};
21pub use sdk::{BreezSdk, default_config, init_logging, parse_input};
22#[cfg(not(feature = "uniffi"))]
23pub use sdk_builder::SdkBuilder;
24
25#[cfg(not(all(target_family = "wasm", target_os = "unknown")))]
26pub use {persist::sqlite::SqliteStorage, sdk::default_storage};
27
28#[cfg(feature = "test-utils")]
29pub use persist::tests as storage_tests;
30
31#[cfg(feature = "uniffi")]
32uniffi::setup_scaffolding!();