-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
acceptedAn accepted request or suggestionAn accepted request or suggestionhelp wantedContributions to this issue are neededContributions to this issue are neededrequestRequest for new functionalityRequest for new functionality
Milestone
Description
What's missing?
Rocket currently re-exports the async_trait crate for use with its Fairing (and possibly others). As of rust 1.75.0 this is no longer needed, therefore it would be nice to get rid of this dependency and use actual async functions for these traits.
This generally improves compile times, dependency count and IDE responsiveness.
Ideal Solution
For v0.6, remove async_trait (or put its usage behind a feature) and use async functions directly. This would raise the MSRV to 1.75.0.
Why can't this be implemented outside of Rocket?
This is an integral part of Rocket.
Are there workarounds usable today?
No. You bypass the need for the macro attribute by returning a Box<dyn Future<Output = T> + Send + 'a>, but this is unwieldy.
Alternative Solutions
No response
Additional Context
No response
System Checks
- I do not believe that this feature can or should be implemented outside of Rocket.
- I was unable to find a previous request for this feature.
DavidSkrundz, legoktm, lanesawyer, marziply, reneleonhardt and 1 more
Metadata
Metadata
Assignees
Labels
acceptedAn accepted request or suggestionAn accepted request or suggestionhelp wantedContributions to this issue are neededContributions to this issue are neededrequestRequest for new functionalityRequest for new functionality
Type
Projects
Status
Backlog