Show HN: An Express-inspired web framework for Rust
crates.io
crates.io
Otherwise, it feels like it adds nothing on top of Axum. In fact, I don't see a way to do statically typed query param extraction with this, so I'm not even sure if the tiny syntactical change is worth it.
Am I missing something?
I never really drank the clojure (which I really like by the way and, like said, I use for prototyping/spelunking) creator koolaid that web apis are changing all the time so you need to be flexible. This, in practice, with companies that don’t fall over tomorrow, doesn’t happen that often.
let value: Json<MyStruct> = match c.parse_params().await
> Designed to improve, >>> speed <<<
How does it speed if it’s built on top of other frameworks?
Personally for backend Rust I use rouille[0] for the server (it's very simple and async-free), askama[1] for compile-time HTML templates and (if a SPA is unavoidable, as that is of course always to be avoided if at all possible) yew[2] for client-side WASM.
Now this stack is what I like personally, but there are many options that you can combine, some more full-featured than others. Check out https://www.arewewebyet.org/ for a partial overview.
[0]: https://github.com/tomaka/rouille
[1]: https://github.com/djc/askama
[2]: https://yew.rs/
the readme.md has been updated https://github.com/graphul-rs/graphul
I don't like discussions about what programming languages or frameworks are better than another, Golang vs Rust, etc
thanks, be positive :)
As others have said, this doesn't seem to add more to Axum, in fact, it seems to remove features?
I dig poem-openapi, personally.
I much prefer threads, which are convenient to use in Rust anyway. Is it possible to go faster? Maybe, but how often is it really a bottleneck given how fast Rust already is?