HTTP frameworks in Rust so far: On the one side there's the batteries-included, nightly only, framework that requires compiler plugins to work. On the other side there's sparse, build-your-own-framework kits. Lots of boilerplate. I'm waiting for the middleground.
-
-
Update: found a web framework I like! (by
@withoutboats
)
It feels very Rust-like; making use of the language rather than trying to bend it into a different shape.
Excited to try this out sometime!
https://cargonauts-rs.github.io/cargonauts Show this thread -
(Also disclaimer that it's not been updated in a while, and I believe that the author is busy making lots of other things happen. Even still: this direction is super exciting, and shows off what Web Apps in Rust could look like!)
Show this thread -
Oh, I should probably expand a little on what "Rust-like" means to me. A lot of my fave Rust modules start off by defining a struct, and then strapping a rocket onto it. Serde gives you arbitrary data conversions in 1 line. Structopt does the same for full CLIs w/ help and all
Show this thread -
Cargonauts feels similar. You start off by defining the shape of your data first. Then you add behavior to it through methods. And finally you map the data and methods to a REST API in a central place. It feels real clean & easy to reason about. Very little else is needed!
Show this thread
End of conversation
New conversation -
-
-
lol yes yes i feel this. you should talk to
@withoutboats and the webservices-WG, its one of our 4 key domains this year and i don't think we'll solve this issue but we're def gonna improve it a ton -
Sounds really cool! - I think between futures 1.0, the CLI WG, & H2 improvements, we're setting us up to succeed here :D
- 2 more replies
New conversation -
-
-
I've seen some mighty rusty choo choos. just sayin.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.