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