Skip to content

Commit 090d0f0

Browse files
LegNeatodavidbarsky
authored andcommitted
Add note about aws_lambda_events crate (#42)
* Add note about `aws_lambda_events` crate As mentioned in #12 * Use backticks for crate name
1 parent 105eaf8 commit 090d0f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ pub type Handler<E, O> = fn(E, Context) -> Result<O, error::HandlerError>;
102102

103103
Optionally, you can pass your own instance of Tokio runtime to the `lambda!()` macro. See our [`with_custom_runtime.rs` example](https://github.com/awslabs/aws-lambda-rust-runtime/tree/master/lambda-runtime/examples/with_custom_runtime.rs)
104104

105+
## AWS event objects
106+
107+
This project does not currently include Lambda event struct defintions though we [intend to do so in the future](https://github.com/awslabs/aws-lambda-rust-runtime/issues/12). Instead, the community-maintained [`aws_lambda_events`](https://crates.io/crates/aws_lambda_events) crate can be leveraged to provide strongly-typed Lambda event structs. You can create your own custom event objects and their corresponding structs as well.
108+
105109
## Custom event objects
106110

107111
To serialize and deserialize events and responses, we suggest using the use the [`serde`](https://github.com/serde-rs/serde) library. To receive custom events, annotate your structure with Serde's macros:

0 commit comments

Comments
 (0)