zep

Crates.iozep
lib.rszep
version0.3.1
created_at2025-11-11 12:01:34.568081+00
updated_at2025-11-21 21:19:08.606492+00
descriptionA minimal, super simple, async HTTP library in Rust
homepage
repositoryhttps://github.com/dragonpeti53/zep
max_upload_size
id1927102
size41,097
Mészáros Péter (dragonpeti53)

documentation

README

Crates.io

Zep is a minimal, super simple, async HTTP library in Rust.

It's designed to be minimal and easy to use, while still being very fast.

Example

This code returns a 200 OK response with the body Hello world! when GET / is requested.

use zep::{tokio, Router, Request, Response, Server, Method};

async fn root(_req: Request) -> Response {
    Response::ok("Hello world!")
}

#[tokio::main]
async fn main() {
    let mut router = Router::new();
    router.route(Method::GET, "/", root);
    let server = Server::new("0.0.0.0:8080", router);
    let _ = server.run().await;
}

Check out the docs!

Commit count: 0

cargo fmt