Re:Feather: Feather: A web framework that skips Rust's async...
by gfs on Sunday May 04, 2025 @03:16PM
(#43888791)
So the caveat is you need to call `spawn_blocking` with synchronous functions. I see.
Re:Feather: Feather: A web framework that skips Rust's async...
by Qwuke on Sunday May 04, 2025 @03:23PM
(#43888856)
With a framework like Axum, yes, but with Rocket, no - you can just declare synchronous functions and pass them as a route handler, e.g.: https://github.com/Qwuke/recurse-ring/blob/main/src/main.rs#...
If you're averse to touching async fn's or tokio APIs _at all_, it's nice devex.
Not all async Rust webframeworks let you do away with async and futures entirely in your business logic.