Closed
Description
Crates should not be slow to compile due to axum. If you're having compile issues please post a reproduction script here so we can fix it!
Note that compiles have been improved for the upcoming 0.2 release. If you're having issues try depending directly on main
.
Known issues
These are the currently known compile time issues:
- A lot of chained
.route(...)
calls that ends in.boxed()
can be slow to compile. We believe this is a rustc bug and don't have a fix for it in axum. See Having compile time issues? Post here! #200 (comment) for a possible workaround. - Calling
Handler::layer
multiple times to add several middleware. See Having compile time issues? Post here! #200 (comment). Note that usingtower::ServiceBuilder
fixes the issue and is the recommended way to add multiple middleware. - Compile times are slower on 1.56 #399
Metadata
Assignees
Labels
No labels