lib.rs 891 B

12345678910111213141516171819202122232425262728293031
  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 common;
  10. pub mod database;
  11. pub mod error;
  12. #[cfg(feature = "mint")]
  13. pub mod mint;
  14. #[cfg(feature = "mint")]
  15. pub mod payment;
  16. pub mod pub_sub;
  17. #[cfg(feature = "mint")]
  18. pub mod state;
  19. pub mod subscription;
  20. #[cfg(feature = "wallet")]
  21. pub mod wallet;
  22. pub mod ws;
  23. // re-exporting external crates
  24. pub use bitcoin;
  25. pub use cashu::amount::{self, Amount};
  26. pub use cashu::lightning_invoice::{self, Bolt11Invoice};
  27. pub use cashu::nuts::{self, *};
  28. pub use cashu::{dhke, ensure_cdk, mint_url, secret, util, SECP256K1};
  29. pub use error::Error;