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