Skip to content

Commit

Permalink
Updating versions and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
l1x committed Dec 12, 2023
1 parent 8481a5b commit 1a3deb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 9 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "Tower Layer for compatibility between Axum and AWS Lambda Runtime
readme = "README.md"
homepage = "https://github.com/lazear/axum-aws-lambda"
repository = "https://github.com/lazear/axum-aws-lambda"
license ="MIT"
license = "MIT"
keywords = ["axum", "lambda", "tower", "aws"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -16,14 +16,19 @@ keywords = ["axum", "lambda", "tower", "aws"]
axum = "0.6"
lambda_http = "0.8"
hyper = "0.14"
bytes = "1"
http = "0.2"
bytes = "1.5"
http = "1"
tower = "0.4"
tower-service = "0.3"

[dev-dependencies]
tokio = { version = "1.0", features = ["rt"] }
tower-http = { version = "0.4", features = ["cors", "compression-gzip", "compression-deflate", "trace"] }
tower-http = { version = "0.4", features = [
"cors",
"compression-gzip",
"compression-deflate",
"trace",
] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use axum::response::IntoResponse;
use http::Uri;
use lambda_http::RequestExt;
use std::{future::Future, pin::Pin};
use tower::Layer;
Expand Down Expand Up @@ -77,7 +76,7 @@ where
url.push('?');
url.push_str(query);
}
parts.uri = url.parse::<Uri>().unwrap();
parts.uri = url.parse::<hyper::Uri>().unwrap();
}

let request = axum::http::Request::from_parts(parts, body);
Expand Down

0 comments on commit 1a3deb4

Please sign in to comment.