lib.rs 1012 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //! This crate is the base foundation to build things that can interact with the CDK (Cashu
  2. //! Development Kit) and their internal crates.
  3. //!
  4. //! This is meant to contain the shared types, traits and common functions that are used across the
  5. //! internal crates.
  6. #![doc = include_str!("../README.md")]
  7. pub mod task;
  8. pub mod common;
  9. pub mod database;
  10. pub mod error;
  11. #[cfg(feature = "mint")]
  12. pub mod melt;
  13. #[cfg(feature = "mint")]
  14. pub mod mint;
  15. #[cfg(feature = "mint")]
  16. pub mod payment;
  17. pub mod pub_sub;
  18. #[cfg(feature = "mint")]
  19. pub mod state;
  20. pub mod subscription;
  21. #[cfg(feature = "wallet")]
  22. pub mod wallet;
  23. pub mod ws;
  24. // re-exporting external crates
  25. pub use bitcoin;
  26. pub use cashu::amount::{self, Amount};
  27. pub use cashu::lightning_invoice::{self, Bolt11Invoice};
  28. pub use cashu::nuts::{self, *};
  29. #[cfg(feature = "mint")]
  30. pub use cashu::quote_id::{self, *};
  31. pub use cashu::{dhke, ensure_cdk, mint_url, secret, util, SECP256K1};
  32. pub use error::Error;
  33. /// Re-export parking_lot for reuse
  34. pub use parking_lot;