百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

routerify

> 包管理
开源

一个轻量级、规范、可组合和模块化的路由器实现,支持 Rust HTTP 库 hyper.rs 的中间件。

397 stars0 点赞6 次浏览
访问官网GitHub

工具介绍

一个轻量级、规范、可组合和模块化的路由器实现,支持 Rust HTTP 库 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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustcargohttphyperhyper-rs

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类包管理
定价开源

> 相关工具

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