News for hackers. Stuff that matters.
Re:Show HN: An Express-inspired web framework for Rust by fullofdev on Sunday October 16, 2022 @06:41AM (#33222622)
Hi. Is it something that comes with HTML templating? Im curious what people user if (any) use Rust as their ‘web backend’. Assume the app is only for web app. Do people just separate rust as API , and use something like Nextjs, etc.. or there’s full featured framrework for building website in Rust? Thanks
Re:Show HN: An Express-inspired web framework for Rust by tazjin on Sunday October 16, 2022 @08:14AM (#33223000)
In strongly typed languages like Rust, composing smaller libraries is usually quite painless, so you don't need a large framework.

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/

Re:Show HN: An Express-inspired web framework for Rust by fullofdev on Sunday October 16, 2022 @05:37PM (#33227391)
wow thanks for all the refrences! appreciate it!
Re:Show HN: An Express-inspired web framework for Rust by fullofdev on Sunday October 16, 2022 @05:39PM (#33227400)
anyway do you go with a specific full featured framework? or you just combine things?
Re:Show HN: An Express-inspired web framework for Rust by samuelbonill on Sunday October 16, 2022 @09:16PM (#33228842)
you can use HTML template with Graphul and askama

the readme.md has been updated https://github.com/graphul-rs/graphul

https://github.com/graphul-rs/graphul#-templates