Crates.io | limiting-factor-axum |
lib.rs | limiting-factor-axum |
version | 0.2.0 |
created_at | 2025-09-24 18:14:29.695286+00 |
updated_at | 2025-09-25 22:01:33.027714+00 |
description | Library to create a REST API with axum |
homepage | |
repository | https://devcentral.nasqueron.org/source/limiting-factor/ |
max_upload_size | |
id | 1853535 |
size | 30,072 |
This crate helps to build REST API with axum, with less boilerplate code.
The extractor for request body is a port of the Rocket 0.4 guard added in Limiting Factor 0.8.0.
If you need to read the body of the HTTP request "as is", the AxumRequestBody extractor allows you to read it as a string:
async fn deploy(
Path(site_name): Path<String>,
State(config): State<AlkaneConfig>,
body: AxumRequestBody,
) -> ApiResult<Json<RecipeStatus>> {
let context = body.into_optional_string(); // Option<String>
// ...
}
Current focus is to port features used by REST API from Rocket 0.4 to axum 0.8.4+.
New features: