Get the latest tech news
Axum 0.8
Tokio is a runtime for writing reliable asynchronous applications with Rust. It provides async I/O, networking, scheduling, timers, and more.
There are many reasons for this change, but the most important one is that the old syntax was not allowing route definitions with leading: or* characters. Imagine you have an AuthenticatedUser extractor that requires a valid token to be present in the request, but in some cases authentication is optional. You can now use Option<AuthenticatedUser> as an extractor without losing the ability to return an error response if the token is invalid or the database connection failed.
Or read this on Hacker News