1#![warn(missing_docs)]
2#![doc = include_str!("../README.md")]
3
4pub mod core;
6pub mod types;
7
8pub mod error;
10pub use error::{Error, Result};
11
12mod backend;
14mod user;
15mod wallet;
16pub use wallet::error::{ErrorKind, WalletError};
17
18#[cfg(not(target_arch = "wasm32"))]
19mod logger;
20
21pub use wallet::*;
22
23#[cfg(test)]
25pub(crate) mod testing_utils;
26
27pub use secrecy;
29
30#[macro_export]
34macro_rules! require_feature {
35 ($feature: literal, $body: block) => {{
37 $crate::require_feature!(
38 $feature,
39 $body,
40 format!("SDK is not compiled with feature `{}` enabled", $feature)
41 )
42 }};
43 ($feature: literal, $body: block, $error: expr) => {{
45 #[cfg(not(feature = $feature))]
46 {
47 Err($error)
48 }
49
50 #[cfg(feature = $feature)]
51 $body
52 }};
53}
54
55use shadow_rs::shadow;
56shadow!(build);