Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

routerify

> 包管理
Open source

A lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.rs

397 stars0 likes6 views
WebsiteGitHub

About

A lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.rs

Routerify

Routerify provides a lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.

Routerify's core features:

  • Design complex routing using scopes and middlewares
  • Fast route matching using RegexSet
  • Route handlers may return any HttpBody
  • ❗ Flexible error handling strategy
  • WebSocket support out of the box.
  • Route handlers and middleware may share state
  • Extensive documentation and examples

To generate a quick server app using Routerify and hyper, please check out hyper-routerify-server-template.

Compiler support: requires rustc 1.48+

Benchmarks

Framework Language Requests/sec
hyper v0.14 Rust 1.50.0 144,583
routerify v2.0.0 with hyper v0.14 Rust 1.50.0 144,621
actix-web v3 Rust 1.50.0 131,292
warp v0.3 Rust 1.50.0 145,362
go-httprouter, branch master Go 1.16 130,662
Rocket, branch master Rust 1.50.0 130,045

For more info, please visit Benchmarks.

Install

Add this to your Cargo.toml file:

toml
[dependencies]
routerify = "3"
hyper = "0.14"
tokio = { version = "1", features = ["full"] }

Basic Example

A simple example using Routerify with hyper would look like the following:

…

Documentation

Please visit: Docs for an exhaustive documentation.

Examples

The examples.

Contributing

Your PRs and suggestions are always welcome.

Issues· 19 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcargohttphyperhyper-rs

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image