Skip to content

Commit

Permalink
Updating axum.
Browse files Browse the repository at this point in the history
Signed-off-by: Omar Zabala-Ferrera <[email protected]>
  • Loading branch information
ozabalaferrera authored and jcrossley3 committed Jan 6, 2025
1 parent 2bd15df commit 5345ee3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ bytes = { version = "^1.0", optional = true }
futures = { version = "^0.3", optional = true, features = ["compat"]}
http = { version = "1.2", optional = true}
http-0-2 = { version = "0.2", optional = true, package = "http"}
axum-lib = { version = "^0.7", optional = true, package="axum"}
axum-lib = { version = "^0.8", optional = true, package="axum"}
http-body-util = {version = "^0.1", optional = true}
poem-lib = { version = "^3.1", optional = true, package = "poem" }
nats-lib = { version = "0.25.0", optional = true, package = "nats" }
Expand All @@ -67,15 +67,15 @@ hostname = "^0.4"
web-sys = { version = "^0.3", features = ["Window", "Location"] }

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

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

[dev-dependencies]
rstest = "0.23"
claims = "0.7.1"
claims = "0.8"
version-sync = "0.9.2"
serde_yaml = "^0.9"
rmp-serde = "1"
Expand Down
6 changes: 3 additions & 3 deletions example-projects/axum-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ edition = "2021"

[dependencies]
cloudevents-sdk = { path = "../..", features = ["axum"] }
axum = "^0.7"
axum = "^0.8"
http = "^1.1"
tokio = { version = "^1", features = ["full"] }
tracing = "^0.1"
tracing-subscriber = "^0.3"
tower-http = { version = "^0.5", features = ["trace"] }
tower-http = { version = "^0.6", features = ["trace"] }

[dev-dependencies]
tower = { version = "^0.4", features = ["util"] }
tower = { version = "^0.5", features = ["util"] }
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
chrono = { version = "^0.4", features = ["serde"] }
Expand Down
2 changes: 0 additions & 2 deletions src/binding/axum/extract.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use async_trait::async_trait;
use axum::body::Bytes;
use axum::extract::{FromRequest, Request};
use axum::response::Response;
Expand All @@ -9,7 +8,6 @@ use http::StatusCode;
use crate::binding::http::to_event;
use crate::event::Event;

#[async_trait]
impl<S> FromRequest<S> for Event
where
Bytes: FromRequest<S>,
Expand Down

0 comments on commit 5345ee3

Please sign in to comment.