cdk_common/
lib.rs

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