展示 HN:Yaiko – 一个用于 Rust 和 jQuery 的全栈 Web 框架

1 分•作者: the_plug•2 个月前
Yaiko (<a href="https:&#x2F;&#x2F;github.com&#x2F;sazalo101&#x2F;yaiko" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sazalo101&#x2F;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:&#x2F;&#x2F;github.com&#x2F;sazalo101&#x2F;yaiko&#x2F;blob&#x2F;main&#x2F;BOOK.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sazalo101&#x2F;yaiko&#x2F;blob&#x2F;main&#x2F;BOOK.md</a> * Crates.io:<a href="https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;yaiko" rel="nofollow">https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;yaiko</a> 欢迎对 API 设计和架构提出反馈意见。
查看原文
Yaiko (<a href="https:&#x2F;&#x2F;github.com&#x2F;sazalo101&#x2F;yaiko" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sazalo101&#x2F;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:&#x2F;&#x2F;github.com&#x2F;sazalo101&#x2F;yaiko&#x2F;blob&#x2F;main&#x2F;BOOK.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sazalo101&#x2F;yaiko&#x2F;blob&#x2F;main&#x2F;BOOK.md</a> Crates.io: <a href="https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;yaiko" rel="nofollow">https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;yaiko</a><p>Feedback on the API design and architecture is appreciated.