| Crates.io | monoio-relay |
| lib.rs | monoio-relay |
| version | 0.1.0 |
| created_at | 2025-12-08 07:00:47.454566+00 |
| updated_at | 2025-12-08 07:00:47.454566+00 |
| description | monoio-relay is a high-performance, easy-to-use HTTP server framework built for use with the Monoio runtime |
| homepage | |
| repository | https://github.com/ReflxzR/monoio-relay |
| max_upload_size | |
| id | 1972848 |
| size | 165,412 |
monoio-relay is a high-performance, easy-to-use HTTP server framework written in Rust. Built on the monoio runtime and its io_uring driver, the framework offers minimal overhead for performance-critical applications.
hyper builder API.Each handler function in monoio-relay takes only two mandatory parameters:
use monoio_relay::router::AppState;
// Note: The state application must implement the `Clone` trait. Check examples
// If you don't want to specify any stateful app
async fn sample_request_handler(_req: Request<HttpBody>, _state: AppState<()>) -> Response<HyperBody> {
Response::new(HyperBody::text("Hello from /api/users route"))
}
// If you want to provide and use the state
async fn sample_request_handler(req: Request<HttpBody>, state: AppState<YourStateApp>) -> Response<HyperBody> {
Response::new(HyperBody::text("Hello from /api/users route"))
}
please refer examples for more implementation details
benchmarked using wrk and rewrk against other popular Rust frameworks. A simple "Hello, World!" HTTP server was used for raw performance evaluation.