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 }