Ver Fonte

refactor: export http client

thesimplekid há 11 meses atrás
pai
commit
664776f122
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      crates/cdk/src/lib.rs

+ 4 - 0
crates/cdk/src/lib.rs

@@ -1,5 +1,7 @@
 extern crate core;
 
+#[cfg(any(feature = "mint", feature = "wallet"))]
+pub use bip39::Mnemonic;
 pub use bitcoin::hashes::sha256::Hash as Sha256;
 pub use bitcoin::secp256k1;
 pub use lightning_invoice::{self, Bolt11Invoice};
@@ -21,6 +23,8 @@ pub mod util;
 pub mod wallet;
 
 pub use self::amount::Amount;
+#[cfg(feature = "wallet")]
+pub use self::client::HttpClient;
 pub use self::util::SECP256K1;
 
 pub type Result<T, E = Box<dyn std::error::Error>> = std::result::Result<T, E>;