{"version":"https://jsonfeed.org/version/1.1","title":"Rocket on 超光速","home_page_url":"https://www.ftls.xyz/tags/rocket/","feed_url":"https://www.ftls.xyz/tags/rocket/feed.json","authors":[{"name":{"about":"","avatar":"/avatar-128x128.webp","bio":"浮生若梦 为欢几何","email":"0@ftls.xyz","github":"https://github.com/kkbt0","gravataremail":"","link":"https://www.ftls.xyz/","location":"Earth","name":"恐咖兵糖"}}],"items":[{"title":"Rust Web Rokcet 系列 3 使用 JWT ","id":"https://www.ftls.xyz/posts/rust-rocket3/","url":"https://www.ftls.xyz/posts/rust-rocket3/","content_text":"\u003cp\u003eJWT即使用的包是jsonwebtoken。是使用token进行验证的一种方式。基于\u003ccode\u003etoken\u003c/code\u003e的认证方式相比传统的\u003ccode\u003esession\u003c/code\u003e认证方式相比节约服务器资源。 JWT 官网 \u003ca href=\"https://jwt.io/\"\r\n  rel=\"external nofollow noopener noreferrer\" target=\"_blank\"\u003ehttps://jwt.io/\u003cspan style=\"user-select:none\"\u003e ↗\u003c/span\u003e\u003c/a\u003e 。\u003c/p\u003e","date_published":"2022-02-16T13:32:05+08:00","tags":["Rust","Web","Rocket"]},{"title":"Rust Web Rokcet 系列 2 连接数据库 和 CURD 增删改查","id":"https://www.ftls.xyz/posts/rust-rocket2/","url":"https://www.ftls.xyz/posts/rust-rocket2/","content_text":"\u003cp\u003e使用的是 SQLite 数据库，实际上各种数据库都大同小异。已经有很多包帮助我们处理各种细节。目前 diesel 支持mysql，postgres和sqlite。\u003cem\u003e函数使用方法一般都在鼠标移动到函数上，显示出的文档中。换句话说，在 Ctrl+左键 点击进去显示的源文件的字里行间之中。\u003c/em\u003e\u003c/p\u003e","date_published":"2022-02-15T09:08:37+08:00","tags":["Rust","Web","Rocket"]},{"title":"Rust Web Rokcet 系列 1 Hello，World！与 GET，POST，PUT，DELETE","id":"https://www.ftls.xyz/posts/rust-rocket1/","url":"https://www.ftls.xyz/posts/rust-rocket1/","content_text":"\u003cp\u003eRust web 领域目前有几个使用较多的框架，如 actix-web， Rocket 等等。我在使用 jwt 时使用过 Rocket ，由于最初使用的是  0.5.0-rc.1 版本，连接数据库的时候走了一些弯路。因此记录这篇文章给后来的人一点借鉴。\u003c/p\u003e","date_published":"2022-02-14T13:17:43+08:00","tags":["Rust","Web","Rocket"]}]}