Recommend alternatives to Axum
⚓ Rust 📅 2025-08-10 👤 surdeus 👁️ 10I'm looking for a simpler alternative to Axum server. The main problems I find with it are:
- Too slow to
cargo check. I had to split it off my main app, because LLVM lines count was ~8K for each of several binaries, and ~230K for the web server binary (that uses Axum). It was so slow, I had to same a file twice, because from the first save, I didn't see anycargo c, and after two of these, I saw some new updated error messages after a ~minute. It seems that the axum-based server had much more LLVM lines than all the other binaries combined. - Too much magic, poorly documented. E.g. you give it a function and it expects objects to come in a certain way: path object, app state, then form data. There's no doc telling this explicitly, and no source reading can shed light on layers of macros. I just found some discussion on a forum/SO that gave me a hint how to make forms with Axum.
Is there any more straightforward tool?
I need
- normal web page
- static files
- web method with parameters
- json in request payload & response body
- form with files uploaded
- testability (call a method directly from a test code)
4 posts - 2 participants
🏷️ Rust_feed