Recommend alternatives to Axum

⚓ Rust    📅 2025-08-10    👤 surdeus    👁️ 3      

surdeus

I'm looking for a simpler alternative to Axum server. The main problems I find with it are:

  1. 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 any cargo 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.
  2. 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

  1. normal web page
  2. static files
  3. web method with parameters
  4. json in request payload & response body
  5. form with files uploaded
  6. testability (call a method directly from a test code)

4 posts - 2 participants

Read full topic

🏷️ Rust_feed