talira

A super-easy, composable, web server framework for warp speeds.

open sourceMITself-hostablefree

warp is a Rust web server framework from Sean McArthur (seanmonstar), built on hyper. Everything in it is a Filter: small typed pieces that match and extract parts of a request (a path segment, a header, a query string, a JSON or form body) and combine with and, or and map into routes, with requests a filter doesn't match turned into rejections you can recover from. Built-in filters cover routing, headers, cookies, CORS, static files and directories, multipart forms, WebSockets, server-sent events, Brotli and gzip compression, access logs and tracing, and a test module runs mocked requests through your filters. Version 0.4 moved to hyper 1 and made the server, WebSocket, multipart, compression and test parts opt-in Cargo features, and dropped built-in TLS. It runs on Tokio and is MIT-licensed; 0.4.4 came out in November 2026.

Problems it solves

  • build a small JSON API in Rust where routes are type-checked at compile time
  • compose reusable request extractors (auth header, path params, query) and share them across Rust endpoints
  • add a WebSocket endpoint to a lightweight Rust HTTP server
  • push live updates to the browser with server-sent events from a Rust service
  • serve a static directory and a few API routes from one Rust binary
  • test my Rust HTTP handlers without binding to a real port
  • parse multipart file uploads in a Rust web service
  • add CORS headers and gzip or Brotli compression to a Rust API
  • turn unmatched routes and bad input into custom JSON error responses in Rust
  • an async Rust web server on hyper and Tokio that gets HTTP/1 and HTTP/2 for free
  • log every request with timing in a minimal Rust web app

Features

  • Filter system that composes typed request requirements and extractors
  • path routing and parameter extraction with the path! macro
  • header, cookie, host, method and query filters
  • JSON and form bodies
  • multipart form data (multipart feature)
  • static files and directories
  • WebSockets (websocket feature)
  • server-sent events
  • CORS filters
  • gzip, deflate and Brotli compression (compression features)
View 5 more
  • access logging and tracing filters
  • rejections and recovery for custom error replies
  • test utilities that send mocked requests through filters (test feature)
  • HTTP/1 and HTTP/2 through hyper
  • UnixListener support through incoming(listener)

Limitations

  • Doesn't terminate TLS itself: version 0.4.0 removed the tls feature and its types1

Capabilities

Has an APIplan not known

Alternatives

The same job

These do what warp does.

  1. axum HTTP routing and request-handling library for Rust that focuses on ergonomics and modularity
  2. TrailBase An open, sub-millisecond, single-executable Firebase alternative

Compare warp with the top 3