展示 HN:Yaiko – 一个用于 Rust 和 jQuery 的全栈 Web 框架
1 分•作者: the_plug•2 个月前
Yaiko (<a href="https://github.com/sazalo101/yaiko" rel="nofollow">https://github.com/sazalo101/yaiko</a>) 是一个开源的 Rust 全栈 Web 框架。
大多数 Rust Web 库都需要单独配置身份验证、会话、CSRF、速率限制、迁移和 JavaScript 构建管道。
Yaiko 将这些功能集成到一个单一框架中,后端使用 Rust,前端使用 jQuery,无需 Node.js 构建步骤。
特性:
* 基于 Hyper 和 Tokio 构建(80,000+ RPS)
* 内置 SQLite 和 PostgreSQL 迁移运行器 (yaiko migrate run)
* 支持 CSRF、速率限制、WebSockets 和后台作业队列
* 脚手架 CLI (cargo install yaiko)
* 文档:<a href="https://github.com/sazalo101/yaiko/blob/main/BOOK.md" rel="nofollow">https://github.com/sazalo101/yaiko/blob/main/BOOK.md</a>
* Crates.io:<a href="https://crates.io/crates/yaiko" rel="nofollow">https://crates.io/crates/yaiko</a>
欢迎对 API 设计和架构提出反馈意见。
查看原文
Yaiko (<a href="https://github.com/sazalo101/yaiko" rel="nofollow">https://github.com/sazalo101/yaiko</a>) is an open-source fullstack web framework for Rust.<p>Most Rust web libraries require assembling auth, sessions, CSRF, rate limiting, migrations, and a JS build pipeline separately.<p>Yaiko packages these into a single framework using Rust on the backend and jQuery on the frontend, requiring no Node.js build steps.<p>Features:<p>Built on Hyper and Tokio (80,000+ RPS)
Built-in SQLite and PostgreSQL migration runner (yaiko migrate run)
CSRF, rate limiting, WebSockets, and background job queue
Scaffolding CLI (cargo install yaiko)
Documentation: <a href="https://github.com/sazalo101/yaiko/blob/main/BOOK.md" rel="nofollow">https://github.com/sazalo101/yaiko/blob/main/BOOK.md</a>
Crates.io: <a href="https://crates.io/crates/yaiko" rel="nofollow">https://crates.io/crates/yaiko</a><p>Feedback on the API design and architecture is appreciated.