From 211de92d24a0d6e1ffc0c76b75c26c53c7eb09d3 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Fri, 6 Jan 2023 12:28:31 +0100 Subject: [PATCH] Enable the runtime feature of hyper when using tokio (#1671) --- axum/CHANGELOG.md | 3 +++ axum/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index 0c135524..877563b0 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -8,8 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased - **added:** Add `body_text` and `status` methods to built-in rejections ([#1612]) +- **added:** Enable the `runtime` feature of `hyper` when using `tokio` ([#1671]) [#1612]: https://github.com/tokio-rs/axum/pull/1612 +[#1671]: https://github.com/tokio-rs/axum/pull/1671 + # 0.6.1 (29. November, 2022) diff --git a/axum/Cargo.toml b/axum/Cargo.toml index eddd14ca..8c8ec2b7 100644 --- a/axum/Cargo.toml +++ b/axum/Cargo.toml @@ -22,7 +22,7 @@ matched-path = [] multipart = ["dep:multer"] original-uri = [] query = ["dep:serde_urlencoded"] -tokio = ["dep:tokio", "hyper/server", "hyper/tcp", "tower/make"] +tokio = ["dep:tokio", "hyper/server", "hyper/tcp", "hyper/runtime", "tower/make"] tower-log = ["tower/log"] ws = ["tokio", "dep:tokio-tungstenite", "dep:sha1", "dep:base64"]