feat(axum): support axum 0.8 applications

Upgrade the integration crate and examples to Axum 0.8 and use the native async extractor traits while preserving hemx routing, request, runtime, and effect behavior.

req: axum/002
This commit is contained in:
slhx agent
2026-07-13 09:26:32 +02:00
parent 65895d8b83
commit ecbdea5cd0
11 changed files with 21 additions and 25 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ edition.workspace = true
path = "src/lib.rs"
[dependencies]
axum = { version = "0.7", default-features = false, features = ["multipart", "tokio"] }
axum = { version = "0.8", default-features = false, features = ["multipart", "tokio"] }
futures-util = { version = "0.3", default-features = false }
hemx-core = { path = "../hemx-core" }
hemx-js = { path = "../hemx-js" }
-4
View File
@@ -1,4 +1,3 @@
use axum::async_trait;
use axum::body::{to_bytes, Body};
pub use axum::extract::State;
use axum::extract::{FromRequest, FromRequestParts, Multipart};
@@ -91,7 +90,6 @@ impl PageRequest {
}
}
#[async_trait]
impl<S> FromRequestParts<S> for PageRequest
where
S: Send + Sync,
@@ -1237,7 +1235,6 @@ impl IntoResponse for InteractionFormRejection {
}
}
#[async_trait]
impl<S> FromRequest<S> for InteractionRequest
where
S: Send + Sync,
@@ -1251,7 +1248,6 @@ where
}
}
#[async_trait]
impl<S> FromRequest<S> for InteractionForm
where
S: Send + Sync,