⚡ Tez (تیز) — Urdu for "Fast, Sharp, Blazing"

TezWeb
The Fastest Rust HTTP Framework

40,000+ RPS. Beats Actix-web 2.26x. Built from scratch.
Zero magic · Zero macros · Pure Rust
40,248 RPS release build (no logger)
2.26x faster than Actix-web
Zero-copy hand-rolled HTTP/1.1 parser

Benchmarks

0
Requests/sec (TezWeb)
0
x faster than Actix
0
ms latency (p99)
TezWeb 🥇
100%
40,248
Actix-web
44.2%
17,809
Node.js *
3%
~1,200
Python *
0.5%
~200
* MacBook Pro, wrk -t8 -c400 -d10s, release build  ·  Node.js/Python are estimates
TezWeb modes: Debug+Logger (17,602) · Release+Logger (26,964) · Release (40,248)

Features — All Verified

HTTP/1.1 verified
HTTP/2 + TLS verified
HTTP/3 / QUIC verified
WebSocket RFC 6455
GraphQL async-graphql
SSE text/event-stream
Reverse Proxy prefix stripping
JWT Auth HMAC-SHA256
Rate Limiting sliding window
Trie Router O(log n)
CORS Middleware auto-injected
Static Files MIME + dir

📄 Hello World in Rust

// main.rs — TezWeb hello world
use tezweb::{TezWeb, Response};

#[tokio::main]
async fn main() {
    TezWeb::new()
        .port(8080)
        .get("/hello", |_req, _params| async move {
            Response::ok().text("Hello from TezWeb! ⚡")
        })
        .run()
        .await
        .unwrap();
}

More examples: cargo run --example rest_api  ·  cargo run --example websocket_chat

📦 Installation

$ cargo add tezweb

or add to Cargo.toml: tezweb = { git = "https://github.com/akramjhabail/tezweb" }

❤️ Support TezWeb

TezWeb is free and open source. Your donation keeps it alive.