3 ms·
It's nice to see so much activity around Rust. On the other hand, the frameworks I've seen seem to all suffer from the same issue: they seem to be intended for
by mercurial 12y ago
It's nice to see so much activity around Rust. On the other hand, the frameworks I've seen seem to all suffer from the same issue: they seem to be intended for very simple use cases. How do you plugin an authentication middleware? How do you do resource traversal?
- cburgdorf 12y agoFloors author here. It's great to have people like you commenting on such things so that other people like me get ideas for things to hack on :) That said, I'm still learning the basics of Rust and therefore try to narrow the scope. Floor strives for simplicity rather than being feature rich. When I turned to Rust I was disappointed to see what the state of web development was. It seemed to be extremely complicated to even write a very simple web server. Especially compared to how easy such things are with something like express.js. Rust is still under heavy development but I think we will see a lot of those missing bits popping out here and there in the coming months.
- agumonkey 12y agoBarely educated guess, Rust has closures and Floor routes looks like Flask. Flask uses python decorator (closure wrapping) to provide 'middlewares'.
- Argorak 12y agoProbably because they are the first tries in an environment where even the language is rapidly moving. I don't expect any of them to survive in that form once Rust 1.0 is out (my Sinatra clone certainly didn't).
- cburgdorf 12y agoI just added a basic middleware system to Floor. Pretty much similar to what expressjs uses. http://cburgdorf.github.io/Floor/doc/floor/struct.Floor.html#method.utilize http://cburgdorf.github.io/Floor/doc/floor/struct.Floor.html...