Skip to content

Updated aws_lambda_events dependency #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lambda-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ lambda_runtime = { path = "../lambda-runtime", version = "0.6" }
serde = { version = "^1", features = ["derive"] }
serde_json = "^1"
serde_urlencoded = "0.7.0"
query_map = { version = "0.5", features = ["url-query"] }
mime = "0.3.16"
encoding_rs = "0.8.31"
url = "2.2.2"
percent-encoding = "2.2.0"

[dependencies.aws_lambda_events]
version = "^0.6.3"
version = "^0.7"
default-features = false
features = ["alb", "apigw"]

Expand Down
2 changes: 1 addition & 1 deletion lambda-http/src/ext.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Extension methods for `http::Request` types

use crate::{request::RequestContext, Body};
use aws_lambda_events::query_map::QueryMap;
use lambda_runtime::Context;
use query_map::QueryMap;
use serde::{de::value::Error as SerdeError, Deserialize};
use std::{error::Error, fmt};

Expand Down
8 changes: 4 additions & 4 deletions lambda-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ use crate::{
response::LambdaResponse,
};

#[cfg(feature = "alb")]
pub use aws_lambda_events::alb;
#[cfg(any(feature = "apigw_rest", feature = "apigw_http", feature = "apigw_websockets"))]
pub use aws_lambda_events::apigw;
Comment on lines -82 to -85
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These reexports were only committed a couple of days ago (#542), and haven't yet been released.

// Reexported in its entirety, regardless of what feature flags are enabled
// because working with many of these types requires other types in, or
// reexported by, this crate.
pub use aws_lambda_events;

pub use aws_lambda_events::encodings::Body;
use std::{
Expand Down
3 changes: 1 addition & 2 deletions lambda-http/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ use aws_lambda_events::apigw::{ApiGatewayProxyRequest, ApiGatewayProxyRequestCon
use aws_lambda_events::apigw::{ApiGatewayV2httpRequest, ApiGatewayV2httpRequestContext};
#[cfg(feature = "apigw_websockets")]
use aws_lambda_events::apigw::{ApiGatewayWebsocketProxyRequest, ApiGatewayWebsocketProxyRequestContext};
use aws_lambda_events::encodings::Body;
use aws_lambda_events::{encodings::Body, query_map::QueryMap};
use http::header::HeaderName;
use http::HeaderMap;
use query_map::QueryMap;
use serde::Deserialize;
use serde_json::error::Error as JsonError;
use std::future::Future;
Expand Down