From 54d8439e35f05c346c7f30b9c974b18fa9becb68 Mon Sep 17 00:00:00 2001
From: David Pedersen <david.pdrsn@gmail.com>
Date: Sun, 11 Sep 2022 16:42:04 +0200
Subject: [PATCH] Ship rc.2 (#1363)

* rc.2

* don't bump version of axum-macros

* fix

* Update axum/Cargo.toml

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

* undo release of axum-extra

* fix

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
---
 axum-core/CHANGELOG.md                      | 4 ++++
 axum-core/Cargo.toml                        | 4 ++--
 axum-core/src/extract/default_body_limit.rs | 8 ++++----
 axum-core/src/extract/mod.rs                | 4 ++--
 axum-extra/Cargo.toml                       | 4 ++--
 axum-macros/Cargo.toml                      | 2 +-
 axum/CHANGELOG.md                           | 4 ++++
 axum/Cargo.toml                             | 4 ++--
 8 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/axum-core/CHANGELOG.md b/axum-core/CHANGELOG.md
index b61b5fae..71cccf5d 100644
--- a/axum-core/CHANGELOG.md
+++ b/axum-core/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 # Unreleased
 
+- None.
+
+# 0.3.0-rc.2 (10. September, 2022)
+
 - **breaking:** Added default limit to how much data `Bytes::from_request` will
   consume. Previously it would attempt to consume the entire request body
   without checking its length. This meant if a malicious peer sent an large (or
diff --git a/axum-core/Cargo.toml b/axum-core/Cargo.toml
index 94f672fa..044d23ed 100644
--- a/axum-core/Cargo.toml
+++ b/axum-core/Cargo.toml
@@ -9,7 +9,7 @@ license = "MIT"
 name = "axum-core"
 readme = "README.md"
 repository = "https://github.com/tokio-rs/axum"
-version = "0.3.0-rc.1" # remember to also bump the version that axum depends on
+version = "0.3.0-rc.2" # remember to also bump the version that axum depends on
 
 [dependencies]
 async-trait = "0.1"
@@ -22,7 +22,7 @@ tower-layer = "0.3"
 tower-service = "0.3"
 
 [dev-dependencies]
-axum = { path = "../axum", version = "0.6.0-rc.1" }
+axum = { path = "../axum", version = "0.6.0-rc.2" }
 futures-util = "0.3"
 hyper = "0.14"
 tokio = { version = "1.0", features = ["macros"] }
diff --git a/axum-core/src/extract/default_body_limit.rs b/axum-core/src/extract/default_body_limit.rs
index 87759c8a..fcf44b79 100644
--- a/axum-core/src/extract/default_body_limit.rs
+++ b/axum-core/src/extract/default_body_limit.rs
@@ -13,8 +13,8 @@ use tower_layer::Layer;
 ///
 /// [`Body::data`]: http_body::Body::data
 /// [`Bytes`]: bytes::Bytes
-/// [`Json`]: https://docs.rs/axum/0.6.0-rc.1/axum/struct.Json.html
-/// [`Form`]: https://docs.rs/axum/0.6.0-rc.1/axum/struct.Form.html
+/// [`Json`]: https://docs.rs/axum/0.6.0-rc.2/axum/struct.Json.html
+/// [`Form`]: https://docs.rs/axum/0.6.0-rc.2/axum/struct.Form.html
 #[derive(Debug, Clone)]
 #[non_exhaustive]
 pub struct DefaultBodyLimit;
@@ -50,8 +50,8 @@ impl DefaultBodyLimit {
     ///
     /// [`tower_http::limit`]: https://docs.rs/tower-http/0.3.4/tower_http/limit/index.html
     /// [`Bytes`]: bytes::Bytes
-    /// [`Json`]: https://docs.rs/axum/0.6.0-rc.1/axum/struct.Json.html
-    /// [`Form`]: https://docs.rs/axum/0.6.0-rc.1/axum/struct.Form.html
+    /// [`Json`]: https://docs.rs/axum/0.6.0-rc.2/axum/struct.Json.html
+    /// [`Form`]: https://docs.rs/axum/0.6.0-rc.2/axum/struct.Form.html
     pub fn disable() -> Self {
         Self
     }
diff --git a/axum-core/src/extract/mod.rs b/axum-core/src/extract/mod.rs
index c2516629..96b62d28 100644
--- a/axum-core/src/extract/mod.rs
+++ b/axum-core/src/extract/mod.rs
@@ -36,7 +36,7 @@ mod private {
 ///
 /// See [`axum::extract`] for more general docs about extraxtors.
 ///
-/// [`axum::extract`]: https://docs.rs/axum/0.6.0-rc.1/axum/extract/index.html
+/// [`axum::extract`]: https://docs.rs/axum/0.6.0-rc.2/axum/extract/index.html
 #[async_trait]
 pub trait FromRequestParts<S>: Sized {
     /// If the extractor fails it'll use this "rejection" type. A rejection is
@@ -99,7 +99,7 @@ pub trait FromRequestParts<S>: Sized {
 /// This ensures your extractor is as flexible as possible.
 ///
 /// [`http::Request<B>`]: http::Request
-/// [`axum::extract`]: https://docs.rs/axum/0.6.0-rc.1/axum/extract/index.html
+/// [`axum::extract`]: https://docs.rs/axum/0.6.0-rc.2/axum/extract/index.html
 #[async_trait]
 pub trait FromRequest<S, B, M = private::ViaRequest>: Sized {
     /// If the extractor fails it'll use this "rejection" type. A rejection is
diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml
index 57aac260..48b607d3 100644
--- a/axum-extra/Cargo.toml
+++ b/axum-extra/Cargo.toml
@@ -34,7 +34,7 @@ spa = ["tower-http/fs"]
 typed-routing = ["dep:axum-macros", "dep:serde", "dep:percent-encoding"]
 
 [dependencies]
-axum = { path = "../axum", version = "0.6.0-rc.1", default-features = false }
+axum = { path = "../axum", version = "0.6.0-rc.2", default-features = false }
 bytes = "1.1.0"
 futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
 http = "0.2"
@@ -58,7 +58,7 @@ tokio-stream = { version = "0.1.9", optional = true }
 tokio-util = { version = "0.7", optional = true }
 
 [dev-dependencies]
-axum = { path = "../axum", version = "0.6.0-rc.1", features = ["headers"] }
+axum = { path = "../axum", version = "0.6.0-rc.2", features = ["headers"] }
 futures = "0.3"
 hyper = "0.14"
 reqwest = { version = "0.11", default-features = false, features = ["json", "stream", "multipart"] }
diff --git a/axum-macros/Cargo.toml b/axum-macros/Cargo.toml
index 85d3ccd0..a490702e 100644
--- a/axum-macros/Cargo.toml
+++ b/axum-macros/Cargo.toml
@@ -25,7 +25,7 @@ syn = { version = "1.0", features = [
 ] }
 
 [dev-dependencies]
-axum = { path = "../axum", version = "0.6.0-rc.1", features = ["headers"] }
+axum = { path = "../axum", version = "0.6.0-rc.2", features = ["headers"] }
 axum-extra = { path = "../axum-extra", version = "0.4.0-rc.1", features = ["typed-routing"] }
 rustversion = "1.0"
 serde = { version = "1.0", features = ["derive"] }
diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md
index e3239f02..a47fd1dd 100644
--- a/axum/CHANGELOG.md
+++ b/axum/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 # Unreleased
 
+- None.
+
+# 0.6.0-rc.2 (10. September, 2022)
+
 ## Security
 
 - **breaking:** Added default limit to how much data `Bytes::from_request` will
diff --git a/axum/Cargo.toml b/axum/Cargo.toml
index de4b2f3e..33c5ab53 100644
--- a/axum/Cargo.toml
+++ b/axum/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "axum"
-version = "0.6.0-rc.1"
+version = "0.6.0-rc.2"
 categories = ["asynchronous", "network-programming", "web-programming::http-server"]
 description = "Web framework that focuses on ergonomics and modularity"
 edition = "2021"
@@ -30,7 +30,7 @@ __private_docs = ["tower/full", "tower-http/full"]
 
 [dependencies]
 async-trait = "0.1.43"
-axum-core = { path = "../axum-core", version = "0.3.0-rc.1" }
+axum-core = { path = "../axum-core", version = "=0.3.0-rc.2" }
 bitflags = "1.0"
 bytes = "1.0"
 futures-util = { version = "0.3", default-features = false, features = ["alloc"] }