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.
-
Show this thread
-
(And no, I'm not going to build *yet another* framework. I refuse :P)
3 replies 0 retweets 3 likesShow this thread -
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 1 reply 0 retweets 4 likesShow 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!)
2 replies 0 retweets 1 likeShow 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
1 reply 0 retweets 1 likeShow 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!
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.