From 76db41b769de1542652ebd6abd793191f2399055 Mon Sep 17 00:00:00 2001 From: Amir Abdin Date: Fri, 14 Nov 2025 15:45:07 +0100 Subject: [PATCH] chore: update edition to 2021 --- http-body-util/Cargo.toml | 21 ++++++++++----------- http-body/Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/http-body-util/Cargo.toml b/http-body-util/Cargo.toml index a1d3f4e..e39860d 100644 --- a/http-body-util/Cargo.toml +++ b/http-body-util/Cargo.toml @@ -14,7 +14,7 @@ authors = [ "Lucio Franco ", "Sean McArthur ", ] -edition = "2018" +edition = "2021" readme = "../README.md" documentation = "https://docs.rs/http-body-util" repository = "https://github.com/hyperium/http-body" @@ -26,25 +26,24 @@ keywords = ["http"] categories = ["web-programming"] rust-version = "1.61" -[features] -default = [] -channel = ["dep:tokio"] -full = ["channel"] +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] [dependencies] bytes = "1" futures-core = { version = "0.3", default-features = false } http = "1" -http-body = { version = "1", path = "../http-body" } +http-body = { path = "../http-body", version = "1" } pin-project-lite = "0.2" - # optional dependencies tokio = { version = "1", features = ["sync"], optional = true } [dev-dependencies] futures-util = { version = "0.3", default-features = false } -tokio = { version = "1", features = ["macros", "rt", "sync", "rt-multi-thread"] } +tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread", "sync"] } -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] +[features] +default = [] +channel = ["dep:tokio"] +full = ["channel"] diff --git a/http-body/Cargo.toml b/http-body/Cargo.toml index 4d6ce91..1d3c6ec 100644 --- a/http-body/Cargo.toml +++ b/http-body/Cargo.toml @@ -13,7 +13,7 @@ authors = [ "Lucio Franco ", "Sean McArthur ", ] -edition = "2018" +edition = "2021" readme = "../README.md" documentation = "https://docs.rs/http-body" repository = "https://github.com/hyperium/http-body"