From c2ba56ee137e52eb7b5045185cf6c89df6924f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:17:07 +0800 Subject: [PATCH] chore(deps): use axum-extra --- Cargo.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c8255f6..93f9436 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,13 @@ documentation = "https://docs.rs/activitypub_federation/" [features] default = ["axum"] -axum = ["dep:axum", "dep:tower", "dep:hyper", "dep:http-body-util"] +axum = [ + "dep:axum", + "dep:axum-extra", + "dep:tower", + "dep:hyper", + "dep:http-body-util", +] diesel = ["dep:diesel"] [lints.rust] @@ -84,8 +90,8 @@ moka = { version = "0.12.8", features = ["future"] } # Axum axum = { version = "0.7.5", features = [ "json", - "headers", ], default-features = false, optional = true } +axum-extra = { version = "0.9.3", optional = true } tower = { version = "0.4.13", optional = true } hyper = { version = "1.4.1", optional = true } http-body-util = { version = "0.1.2", optional = true }