English
NiQin 分享格言: For what it's worth, it's never too late, or in my case, too early, to be whoever you want to be. There's no time limit, stop whenever you want. You can change or stay the same. There's no rules to this thing. We can make the best or the worst of it. I hope you make the best of it. I hope you see things that startle you. I hope you feel things you never felt before. I hope you meet people with a different point of view. I hope you live a life you're proud of. If you find that you're not, I hope you have the strength to start all over again. -- The Curious Case of Benjamin Button
全部 - 最新推荐 最新热门 创建新书籍/文档 我的书籍/updated文档
书籍、文档的所有权利属于作者、编者,以及译者,本站目标仅为便捷阅读。 若有不当之处,请联系 ask@rusthub.org。

Web Tide 中文文档 No.62e28db6bfb6201b26c9d42a 热门

NiQin 更新于 2022-07-28 21:23:02+08:00

浏览数量: 48228

关键词/标签: rust rust-web tide web-framework

Tide 是小型而实用的 Rust web 应用程序框架,为快速开发而构建。它提供了一组健壮的特性,使得构建异步 web 应用程序和 API 更加容易、更为有趣。 Tide 指导手册正在编写中,会随着实践的推移逐步完善。 本书中所有的实例请参阅 [Tide 实例项目](https://github.com/http-rs/tide-book/tree/main/examples)。 > 💥 Tide 在\*\*生产环境的实践“脚手架”\*\*项目,请参阅 **[surfer](https://github.com/zzy/surfer)**[(github 仓库)](https://github.com/zzy/surfer)(将持续升级): > > - 纯粹 Rust 技术栈实现的博客系统,有兴趣请访问[演示站点 1](https://niqin.com),以及[演示站点 2](https://gaidun.com):。 > - 后端(backend)主要提供 graphql 服务,使用了 tide, async-graphql, jsonwebtoken, mongodb 等相关 crate。 > - 前端(frontend)提供 web 应用服务,使用了 tide, rhai, surf, graphql_client, handlebars-rust, cookie 等相关 crate。 > > 💥 关于清洁的模板项目,采用了**纯粹的 Rust 技术栈**。包括(将持续升级): > > - [Rust](https://www.rust-lang.org) - [中文文档](https://rust-lang.niqin.com) > - [Tide](https://crates.io/crates/tide) - [中文文档](https://tide-book.niqin.com) > - [async-graphql](https://crates.io/crates/async-graphql) - [中文文档](https://async-graphql.niqin.com) > - [mongodb & mongo-rust-driver](https://crates.io/crates/mongodb) > - [Surf](https://crates.io/crates/surf) > - [graphql_client](https://crates.io/crates/graphql_client) > - [handlebars-rust](https://crates.io/crates/handlebars) > - [jsonwebtoken](https://crates.io/crates/jsonwebtoken) > - [cookie-rs](https://crates.io/crates/cookie) > > 最简单但完全的示例项目,请参阅 github 仓库 **<a href="https://github.com/zzy/tide-async-graphql-mongodb">tide-async-graphql-mongodb</a>**。目前实现了如下功能(将持续升级): > > - 用户注册 > - 使用 PBKDF2 对密码进行加密(salt)和散列(hash)运算 > - 整合 JWT 鉴权的用户登录 > - 密码修改 > - 资料更新 > - 用户查询和变更 > - 项目查询和变更 > - 使用基于 Rust 实现 graphql-client 获取 GraphQL 服务端数据 > - 渲染 GraphQL 数据到 handlebars-rust 模板引擎