Skip to content

Commit f7244fd

Browse files
committed
update axum
1 parent 3f53ec4 commit f7244fd

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

examples/http-axum-apigw-authorizer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
axum = "0.7"
7+
axum = "0.8"
88
lambda_http = { path = "../../lambda-http" }
99
serde_json = "1.0"
1010
tokio = { version = "1", features = ["macros"] }

examples/http-axum-apigw-authorizer/src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use axum::{
2-
async_trait,
32
extract::{FromRequest, Request},
43
http::StatusCode,
54
response::Json,
@@ -13,7 +12,6 @@ use std::{collections::HashMap, env::set_var};
1312
struct AuthorizerField(String);
1413
struct AuthorizerFields(HashMap<String, serde_json::Value>);
1514

16-
#[async_trait]
1715
impl<S> FromRequest<S> for AuthorizerField
1816
where
1917
S: Send + Sync,
@@ -30,7 +28,6 @@ where
3028
}
3129
}
3230

33-
#[async_trait]
3431
impl<S> FromRequest<S> for AuthorizerFields
3532
where
3633
S: Send + Sync,

examples/http-axum-diesel-ssl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
axum = "0.7"
7+
axum = "0.8"
88
diesel = "2.2.6"
99
diesel-async = { version = "0.5.2", features = ["postgres", "bb8"] }
1010
lambda_http = { path = "../../lambda-http" }

examples/http-axum-diesel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
axum = "0.7"
7+
axum = "0.8"
88
diesel = "2.2.6"
99
diesel-async = { version = "0.5.2", features = ["postgres", "bb8"] }
1010
lambda_http = { path = "../../lambda-http" }

examples/http-axum-middleware/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
axum = "0.7"
7+
axum = "0.8"
88
lambda_http = { path = "../../lambda-http", default-features = false, features = [
99
"apigw_rest", "tracing"
1010
] }

examples/http-axum/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
axum = "0.7"
7+
axum = "0.8"
88
lambda_http = { path = "../../lambda-http" }
99
serde = "1.0.217"
1010
serde_json = "1.0"

lambda-http/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ default-features = false
5252
features = ["alb", "apigw"]
5353

5454
[dev-dependencies]
55-
axum-core = "0.4.5"
56-
axum-extra = { version = "0.9.6", features = ["query"] }
55+
axum-core = "0.5.0"
56+
axum-extra = { version = "0.10.0", features = ["query"] }
5757
lambda_runtime_api_client = { version = "0.11.1", path = "../lambda-runtime-api-client" }
5858
maplit = "1.0"
5959
tokio = { version = "1.43", features = ["macros"] }

0 commit comments

Comments
 (0)