Expand description
Axum server for Mint
§CDK Axum
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§
- Mint
State - CDK Mint State
Functions§
- create_
mint_ router - Create mint
Routerwith required endpoints for cashu mint with the default cache - create_
mint_ router_ with_ custom_ cache - Create mint
Routerwith required endpoints for cashu mint with a custom backend for cache