跳到正文

Ohkami

活跃
ohkami-rs/ohkami

高性能、声明式、可适配多种运行时的 Rust Web 框架,可运行在 tokio、smol 等运行时以及 Cloudflare Workers 和 AWS Lambda 上。

在 GitHub 查看
星标
337
Fork
18
关注
337
未关闭 Issue
35

该介绍目前仅提供英文版本。

Overview

Ohkami — wolf in Japanese — is a performant, declarative and runtime-flexible web framework for Rust.

Features

  • Macro-less, type-safe APIs for declarative, ergonomic code
  • Runtime-flexible — tokio, smol, nio, monoio, compio, worker (Cloudflare Workers) and lambda (AWS Lambda)
  • Good performance and no-network testing
  • Well-structured middleware, Server-Sent Events and WebSocket
  • Highly integrated OpenAPI document generation

Quick start

[dependencies]
ohkami = { version = "0.24", features = ["rt_tokio"] }
tokio  = { version = "1", features = ["full"] }

Switch the runtime feature to rt_worker to build the same app for Cloudflare Workers.

按共同分类和标签排序的同类开源项目。

全部 Web 框架项目 →