4 ms·
I tried Axum recently and had a fairly bad experience. Incomprehensible trait errors, generics all over the place, and mind-numbing async glue code. Salvo wound
by samsartor 2y ago
I tried Axum recently and had a fairly bad experience. Incomprehensible trait errors, generics all over the place, and mind-numbing async glue code. Salvo wound up being way more straightforward for my (admittedly simple) use case.
I haven't written a Rust web server since before async/await, back in the Actix days. Axum is definitely an improvement on that. But I think the async ecosystem still has a long way to go.
- wging 2y agoThe key for trait errors is https://docs.rs/axum-macros/latest/axum_macros/attr.debug_handler.html https://docs.rs/axum-macros/latest/axum_macros/attr.debug_ha... -- it's made solving my problems much easier.
- the__alchemist 2y agoConsider Rouille - it's a very minimal web server in Rust. It does not have the ergonomics problems Axum does, which you describe.