You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While async bring some nice features and makes it easy to create code that "does a few things at once", it's generally more difficult to write, reason about, and debug.
It might be useful to consider providing a non-async APIs that would be used by default, and make async an option that you need to consciously decide to use.
This discussion was converted from issue #176 on March 23, 2026 18:11.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While
asyncbring some nice features and makes it easy to create code that "does a few things at once", it's generally more difficult to write, reason about, and debug.It might be useful to consider providing a non-async APIs that would be used by default, and make
asyncan option that you need to consciously decide to use.A more lightweight alternative would be to remove the
Send + 'staticbound on the request handlers. This can be done with pure hyper (no axum): https://emschwartz.me/async-rust-can-be-a-pleasure-to-work-with-without-send-sync-static/Beta Was this translation helpful? Give feedback.
All reactions