この紹介文は現在英語版のみです。
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) andlambda(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.