Skip to content

Commit 73500b1

Browse files
authored
Add note on Rust version requirement (#49)
On versions prior to 1.45, the compiler will error with `procedural macros cannot be expanded to statements`.
1 parent e5e6268 commit 73500b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

async-stream/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ caller.
150150

151151
[`Stream`]: https://docs.rs/futures-core/*/futures_core/stream/trait.Stream.html
152152

153+
## Supported Rust Versions
154+
`async-stream` is built against the latest stable release. The minimum supported version is 1.45 due to [function-like procedural macros in expression, pattern, and statement positions](https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html#stabilizing-function-like-procedural-macros-in-expressions-patterns-and-statements).
155+
153156
## License
154157

155158
This project is licensed under the [MIT license](LICENSE).

0 commit comments

Comments
 (0)