56 releases
new 0.5.0 | Jul 11, 2025 |
---|---|
0.5.0-beta.1 | Mar 25, 2025 |
0.4.0-beta.5 | Mar 24, 2025 |
0.4.0-beta.3 | Dec 26, 2024 |
0.2.0-alpha.0 | Mar 29, 2021 |
#667 in HTTP server
3,097 downloads per month
Used in 2 crates
185KB
3K
SLoC
Cataclysm: A simple http framework
Cataclysm is a small personal project, an http framework influenced by actix-web
, and built over tokio
. A minimal working example is the following
extern crate cataclysm;
use cataclysm::{Server, Branch, http::{Response, Method}};
async fn index() -> Response {
Response::ok().body("Hello, World!")
}
#[tokio::main]
async fn main() {
let server = Server::builder(
Branch::<()>::new("/").with(Method::Get.to(index))
).build().unwrap();
server.run("localhost:8000").await.unwrap();
}
Dependencies
~17–28MB
~500K SLoC