| Crates.io | rustapi-core |
| lib.rs | rustapi-core |
| version | 0.1.207 |
| created_at | 2025-12-30 14:50:29.569871+00 |
| updated_at | 2026-01-26 00:02:28.91734+00 |
| description | The core engine of the RustAPI framework. Provides the hyper-based HTTP server, router, extraction logic, and foundational traits. |
| homepage | https://github.com/Tuntii/RustAPI |
| repository | https://github.com/Tuntii/RustAPI |
| max_upload_size | |
| id | 2012762 |
| size | 773,350 |
The internal engine of the RustAPI framework.
⚠️ Warning: Most users should depend on
rustapi-rsinstead of using this crate directly. This crate's API is subject to change to support the higher-level facade.
rustapi-core handles the low-level HTTP mechanics, leveraging the best-in-class Rust async ecosystem:
RustApi BuilderResponsible for assembling routes, middleware, and starting the Hyper server.
Handler TraitThe magic that allows functions with arbitrary arguments (extractors) to be used as request handlers.
// This function...
async fn my_handler(Json(body): Json<MyData>) -> impl Responder { ... }
// ...is converted into a Tower Service via the Handler trait.
FromRequest and FromRequestParts traits are defined here. They allow type-safe extraction of data from HTTP requests.
Json<T>Query<T>Path<T>State<T>