Crate cdk_axum

Crate cdk_axum 

Source
Expand description

Axum server for Mint

§CDK Axum

crates.io Documentation MIT licensed

ALPHA This library is in early development, the API will change and should be used with caution.

Axum web server implementation for the Cashu Development Kit (CDK). This provides the HTTP API for Cashu mints.

§Installation

Add this to your Cargo.toml:

[dependencies]
cdk-axum = "*"

§License

This project is licensed under the MIT License.

Modules§

cache
HTTP cache.

Macros§

post_cache_wrapper
Macro to add cache to endpoint
post_cache_wrapper_with_prefer
Macro to add cache to endpoint with prefer header support (for async operations)

Structs§

MintState
CDK Mint State

Functions§

create_mint_router
Create mint Router with required endpoints for cashu mint with the default cache
create_mint_router_with_custom_cache
Create mint Router with required endpoints for cashu mint with a custom backend for cache