فهرست منبع

refactor: cashu wallet moved to cdk-common

thesimplekid 4 هفته پیش
والد
کامیت
d1c9dbae28
4فایلهای تغییر یافته به همراه7 افزوده شده و 4 حذف شده
  1. 5 0
      CHANGELOG.md
  2. 0 2
      crates/cashu/src/lib.rs
  3. 2 2
      crates/cdk-common/src/lib.rs
  4. 0 0
      crates/cdk-common/src/wallet.rs

+ 5 - 0
CHANGELOG.md

@@ -5,6 +5,11 @@
 <!-- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -->
 
 
+## [Unreleased]
+### Changed
+- cashu move wallet mod to cdk-common ([thesimplekid]).
+
+
 ## [v0.8.1](https://github.com/cashubtc/cdk/releases/tag/v0.8.1)
 ### Fixed
 - cashu: Handle url with paths [PR](https://github.com/cashubtc/cdk/pull/678) ([benthecarmane]).

+ 0 - 2
crates/cashu/src/lib.rs

@@ -5,8 +5,6 @@ pub mod mint_url;
 pub mod nuts;
 pub mod secret;
 pub mod util;
-#[cfg(feature = "wallet")]
-pub mod wallet;
 
 pub use lightning_invoice::{self, Bolt11Invoice};
 

+ 2 - 2
crates/cdk-common/src/lib.rs

@@ -15,13 +15,13 @@ pub mod mint;
 pub mod payment;
 pub mod pub_sub;
 pub mod subscription;
+#[cfg(feature = "wallet")]
+pub mod wallet;
 pub mod ws;
 // re-exporting external crates
 pub use bitcoin;
 pub use cashu::amount::{self, Amount};
 pub use cashu::lightning_invoice::{self, Bolt11Invoice};
 pub use cashu::nuts::{self, *};
-#[cfg(feature = "wallet")]
-pub use cashu::wallet;
 pub use cashu::{dhke, ensure_cdk, mint_url, secret, util, SECP256K1};
 pub use error::Error;

+ 0 - 0
crates/cashu/src/wallet.rs → crates/cdk-common/src/wallet.rs