Comment by wjholden
4 months ago
I'm currently using Rocket, Maud, Rusqlite, and Serde for the first time on a project. I'd like to offer my perspectives as someone new to this space.
Rocket routes work pretty well. I like being able to derive FromForm and have it reliably work, including nullable Option fields.
Maud is just wonderful. It's going to be hard to go back to plain HTML after getting the same logic in such cleaner syntax.
I haven't quite figured out authentication yet. Rocket has some functionality, but I might punt this up to Nginx (I'm using Nginx to proxy to Rocket). I'd like for cookies to be a little easier.
Rusqlite has not been fun. I couldn't get Rocket to compile with Rusqlite integration, so I've been manually opening the database for each request. (This is a very, very small site that I'm working on, and web dev is not my main role.) Anyways, all my queries are so verbose and have tons of seemingly-unnecessary Ok() statements and ? syntax. It's nice to map_err to Rocket's HTTP error types, although I'd like a less verbose version. Right now it feels like writing Java with long boilerplates that I'm copying for each route.
No comments yet
Contribute on Hacker News ↗