展示HN:Yaiko – 一款用于Rust和jQuery的全栈网页框架

1 分•作者: the_plug•2 个月前•原帖
Yaiko(<a href="https://github.com/sazalo101/yaiko" rel="nofollow">https://github.com/sazalo101/yaiko</a>)是一个开源的全栈网页框架,基于Rust语言开发。<p>大多数Rust网页库需要单独组装身份验证、会话管理、CSRF、防止请求过载、数据库迁移以及JavaScript构建流程。<p>Yaiko将这些功能打包成一个单一框架,后端使用Rust,前端使用jQuery,无需Node.js构建步骤。<p>特点:<p>基于Hyper和Tokio构建(支持80,000+ RPS)<br>内置SQLite和PostgreSQL迁移运行器(yaiko migrate run)<br>支持CSRF、防止请求过载、WebSockets和后台任务队列<br>脚手架命令行工具(cargo install yaiko)<br>文档:<a href="https://github.com/sazalo101/yaiko/blob/main/BOOK.md" rel="nofollow">https://github.com/sazalo101/yaiko/blob/main/BOOK.md</a><br>Crates.io:<a href="https://crates.io/crates/yaiko" rel="nofollow">https://crates.io/crates/yaiko</a><p>欢迎对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.