From d05bcba02ca4bba4e84dff50bfcfe9877c67c10d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Beno=C3=AEt=20Cortier?= <bcortier@pm.me>
Date: Mon, 11 Apr 2022 22:44:34 -0400
Subject: [PATCH] Update `axum-core` depedency to 0.2 (#337)

* Update `axum-core` depedency to 0.2

* Update doctest to use Axum 0.5

* Update CHANGELOG.md regarding axum

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
---
 CHANGELOG.md       | 3 ++-
 doctest/Cargo.toml | 2 +-
 maud/Cargo.toml    | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c9a0eb..eab52f2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,8 +4,9 @@
 
 - Remove blanket `Render` impl for `T: Display`
   [#320](https://github.com/lambda-fairy/maud/pull/320)
-- Update to axum-core 0.1. This requires axum 0.4
+- Support `axum` v0.5 through `axum-core` v0.2
   [#325](https://github.com/lambda-fairy/maud/pull/325)
+  [#337](https://github.com/lambda-fairy/maud/pull/337)
 - Update to `actix-web` 4.0.
   [#331](https://github.com/lambda-fairy/maud/pull/331)
 
diff --git a/doctest/Cargo.toml b/doctest/Cargo.toml
index ad02936..53ec8ac 100644
--- a/doctest/Cargo.toml
+++ b/doctest/Cargo.toml
@@ -13,7 +13,7 @@ rocket = "0.4"
 rouille = "3"
 tide = "0.16"
 tokio = { version = "1.9.0", features = ["rt", "macros", "rt-multi-thread"] }
-axum = "0.4"
+axum = "0.5"
 
 [dependencies.async-std]
 version = "1.9.0"
diff --git a/maud/Cargo.toml b/maud/Cargo.toml
index 939801a..7d8cb5b 100644
--- a/maud/Cargo.toml
+++ b/maud/Cargo.toml
@@ -25,7 +25,7 @@ rocket = { version = ">= 0.3, < 0.5", optional = true }
 futures-util = { version = "0.3.0", optional = true, default-features = false }
 actix-web-dep = { package = "actix-web", version = "4", optional = true, default-features = false }
 tide = { version = "0.16.0", optional = true, default-features = false }
-axum-core = { version = "0.1", optional = true }
+axum-core = { version = "0.2", optional = true }
 http = { version = "0.2", optional = true }
 
 [dev-dependencies]