Skip to content

Commit 5345ee3

Browse files
ozabalaferrerajcrossley3
authored andcommitted
Updating axum.
Signed-off-by: Omar Zabala-Ferrera <[email protected]>
1 parent 2bd15df commit 5345ee3

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ bytes = { version = "^1.0", optional = true }
5555
futures = { version = "^0.3", optional = true, features = ["compat"]}
5656
http = { version = "1.2", optional = true}
5757
http-0-2 = { version = "0.2", optional = true, package = "http"}
58-
axum-lib = { version = "^0.7", optional = true, package="axum"}
58+
axum-lib = { version = "^0.8", optional = true, package="axum"}
5959
http-body-util = {version = "^0.1", optional = true}
6060
poem-lib = { version = "^3.1", optional = true, package = "poem" }
6161
nats-lib = { version = "0.25.0", optional = true, package = "nats" }
@@ -67,15 +67,15 @@ hostname = "^0.4"
6767
web-sys = { version = "^0.3", features = ["Window", "Location"] }
6868

6969
[target.'cfg(not(target_os = "wasi"))'.dependencies]
70-
hyper = { version = "^1.4", optional = true, package="hyper" }
70+
hyper = { version = "^1.5", optional = true, package="hyper" }
7171
hyper-0-14 = { version = "^0.14", optional = true, package = "hyper"}
7272

7373
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies]
7474
hyper_wasi = { version = "0.15", features = ["full"], optional = true }
7575

7676
[dev-dependencies]
7777
rstest = "0.23"
78-
claims = "0.7.1"
78+
claims = "0.8"
7979
version-sync = "0.9.2"
8080
serde_yaml = "^0.9"
8181
rmp-serde = "1"

example-projects/axum-example/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ edition = "2021"
66

77
[dependencies]
88
cloudevents-sdk = { path = "../..", features = ["axum"] }
9-
axum = "^0.7"
9+
axum = "^0.8"
1010
http = "^1.1"
1111
tokio = { version = "^1", features = ["full"] }
1212
tracing = "^0.1"
1313
tracing-subscriber = "^0.3"
14-
tower-http = { version = "^0.5", features = ["trace"] }
14+
tower-http = { version = "^0.6", features = ["trace"] }
1515

1616
[dev-dependencies]
17-
tower = { version = "^0.4", features = ["util"] }
17+
tower = { version = "^0.5", features = ["util"] }
1818
serde = { version = "^1.0", features = ["derive"] }
1919
serde_json = "^1.0"
2020
chrono = { version = "^0.4", features = ["serde"] }

src/binding/axum/extract.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use async_trait::async_trait;
21
use axum::body::Bytes;
32
use axum::extract::{FromRequest, Request};
43
use axum::response::Response;
@@ -9,7 +8,6 @@ use http::StatusCode;
98
use crate::binding::http::to_event;
109
use crate::event::Event;
1110

12-
#[async_trait]
1311
impl<S> FromRequest<S> for Event
1412
where
1513
Bytes: FromRequest<S>,

0 commit comments

Comments
 (0)