Skip to content

Commit 96b7d78

Browse files
authored
Document required tokio features for example (#1715)
1 parent 7a52161 commit 96b7d78

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

axum/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- **added:** Implement `IntoResponse` for `&'static [u8; N]` and `[u8; N]` ([#1690])
1111
- **fixed:** Make `Path` support types uses `serde::Deserializer::deserialize_any` ([#1693])
1212
- **added:** Implement `Clone` and `Service` for `axum::middleware::Next` ([#1712])
13+
- **fixed:** Document required tokio features to run "Hello, World!" example ([#1715])
1314

1415
[#1690]: https://github.com/tokio-rs/axum/pull/1690
1516
[#1693]: https://github.com/tokio-rs/axum/pull/1693
1617
[#1712]: https://github.com/tokio-rs/axum/pull/1712
18+
[#1715]: https://github.com/tokio-rs/axum/pull/1715
1719

1820
# 0.6.2 (9. January, 2023)
1921

axum/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
//! }
6262
//! ```
6363
//!
64+
//! Note using `#[tokio::main]` requires you enable tokio's `macros` and `rt-multi-thread` features
65+
//! or just `full` to enable all features (`cargo add tokio --features macros,rt-multi-thread`).
66+
//!
6467
//! # Routing
6568
//!
6669
//! [`Router`] is used to setup which paths goes to which services:

0 commit comments

Comments
 (0)