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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user