lib.rs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #![warn(missing_docs)]
  8. #![warn(rustdoc::bare_urls)]
  9. pub mod task;
  10. pub mod common;
  11. pub mod database;
  12. pub mod error;
  13. #[cfg(feature = "mint")]
  14. pub mod melt;
  15. #[cfg(feature = "mint")]
  16. pub mod mint;
  17. #[cfg(feature = "mint")]
  18. pub mod payment;
  19. pub mod pub_sub;
  20. #[cfg(feature = "mint")]
  21. pub mod state;
  22. pub mod subscription;
  23. #[cfg(feature = "wallet")]
  24. pub mod wallet;
  25. pub mod ws;
  26. // re-exporting external crates
  27. pub use bitcoin;
  28. pub use cashu::amount::{self, Amount};
  29. pub use cashu::lightning_invoice::{self, Bolt11Invoice};
  30. pub use cashu::nuts::{self, *};
  31. #[cfg(feature = "mint")]
  32. pub use cashu::quote_id::{self, *};
  33. pub use cashu::{dhke, ensure_cdk, mint_url, secret, util, SECP256K1};
  34. pub use error::Error;
  35. /// Re-export parking_lot for reuse
  36. pub use parking_lot;