Updating axum.
Signed-off-by: Omar Zabala-Ferrera <ozf-dev@pm.me>
This commit is contained in:
parent
5d171da883
commit
f65d22396b
|
@ -55,7 +55,7 @@ bytes = { version = "^1.0", optional = true }
|
||||||
futures = { version = "^0.3", optional = true, features = ["compat"]}
|
futures = { version = "^0.3", optional = true, features = ["compat"]}
|
||||||
http = { version = "1.2", optional = true}
|
http = { version = "1.2", optional = true}
|
||||||
http-0-2 = { version = "0.2", optional = true, package = "http"}
|
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}
|
http-body-util = {version = "^0.1", optional = true}
|
||||||
poem-lib = { version = "^3.1", optional = true, package = "poem" }
|
poem-lib = { version = "^3.1", optional = true, package = "poem" }
|
||||||
nats-lib = { version = "0.25.0", optional = true, package = "nats" }
|
nats-lib = { version = "0.25.0", optional = true, package = "nats" }
|
||||||
|
@ -67,7 +67,7 @@ hostname = "^0.4"
|
||||||
web-sys = { version = "^0.3", features = ["Window", "Location"] }
|
web-sys = { version = "^0.3", features = ["Window", "Location"] }
|
||||||
|
|
||||||
[target.'cfg(not(target_os = "wasi"))'.dependencies]
|
[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"}
|
hyper-0-14 = { version = "^0.14", optional = true, package = "hyper"}
|
||||||
|
|
||||||
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies]
|
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies]
|
||||||
|
@ -75,7 +75,7 @@ hyper_wasi = { version = "0.15", features = ["full"], optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rstest = "0.23"
|
rstest = "0.23"
|
||||||
claims = "0.7.1"
|
claims = "0.8"
|
||||||
version-sync = "0.9.2"
|
version-sync = "0.9.2"
|
||||||
serde_yaml = "^0.9"
|
serde_yaml = "^0.9"
|
||||||
rmp-serde = "1"
|
rmp-serde = "1"
|
||||||
|
|
|
@ -6,15 +6,15 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cloudevents-sdk = { path = "../..", features = ["axum"] }
|
cloudevents-sdk = { path = "../..", features = ["axum"] }
|
||||||
axum = "^0.7"
|
axum = "^0.8"
|
||||||
http = "^1.1"
|
http = "^1.1"
|
||||||
tokio = { version = "^1", features = ["full"] }
|
tokio = { version = "^1", features = ["full"] }
|
||||||
tracing = "^0.1"
|
tracing = "^0.1"
|
||||||
tracing-subscriber = "^0.3"
|
tracing-subscriber = "^0.3"
|
||||||
tower-http = { version = "^0.5", features = ["trace"] }
|
tower-http = { version = "^0.6", features = ["trace"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tower = { version = "^0.4", features = ["util"] }
|
tower = { version = "^0.5", features = ["util"] }
|
||||||
serde = { version = "^1.0", features = ["derive"] }
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
chrono = { version = "^0.4", features = ["serde"] }
|
chrono = { version = "^0.4", features = ["serde"] }
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use async_trait::async_trait;
|
|
||||||
use axum::body::Bytes;
|
use axum::body::Bytes;
|
||||||
use axum::extract::{FromRequest, Request};
|
use axum::extract::{FromRequest, Request};
|
||||||
use axum::response::Response;
|
use axum::response::Response;
|
||||||
|
@ -9,7 +8,6 @@ use http::StatusCode;
|
||||||
use crate::binding::http::to_event;
|
use crate::binding::http::to_event;
|
||||||
use crate::event::Event;
|
use crate::event::Event;
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl<S> FromRequest<S> for Event
|
impl<S> FromRequest<S> for Event
|
||||||
where
|
where
|
||||||
Bytes: FromRequest<S>,
|
Bytes: FromRequest<S>,
|
||||||
|
|
Loading…
Reference in New Issue