File tree 1 file changed +5
-13
lines changed 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 3
3
[ ![ Crates.io] ( https://img.shields.io/crates/v/real-async-trait.svg )] ( https://crates.io/crates/real-async-trait )
4
4
[ ![ Documentation] ( https://docs.rs/real-async-trait/badge.svg )] ( https://docs.rs/real-async-trait/ )
5
5
6
- This crate provides a proof-of-concept proc macro attribute that allows async
7
- traits to be possible, without wrapping everything in a ` Box ` and erase the
8
- types. This is made possible due to experimental ` generic_associated_types `
9
- feature, as well as the unstable ` type_alias_impl_trait ` feature.
10
-
11
- ## Disclaimer
12
- The ` generic_associated_types ` feature is not unstable, but an "incomplete"
13
- experimental feature; rustc even gives you a warning when using it. __ Don't use
14
- this in production code__ . At the moment it's probably a better idea to use a
15
- type-erased async trait attribute proc macro, such as Dtolnay's ` async-trait `
16
- crate, or a similar one. That said, it'd be awesome both for me and for the
17
- rust compiler if you could test this, find something that's missing in the
18
- compiler or here, and file an issue.
6
+ This nightly-only crate provides a proof-of-concept proc macro attribute that
7
+ allows async functions within traits, without the possible runtime overhead of
8
+ wrapping everything in a ` Box ` and erasing the types. This is made possible
9
+ thanks to the unstable ` generic_associated_types ` and ` type_alias_impl_trait `
10
+ nightly features.
19
11
20
12
## License
21
13
You can’t perform that action at this time.
0 commit comments