Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Release 0.8.1 #147

Merged
merged 1 commit into from
Mar 24, 2023
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aws_lambda_events"
version = "0.8.0"
version = "0.8.1"
description = "AWS Lambda event definitions"
authors = [
"Christian Legnitto <christian@legnitto.com>",
Expand Down
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ This crate provides strongly-typed [AWS Lambda event structs](https://docs.aws.a

## Installation

Include the crate in your `Cargo.toml`:

```toml
[dependencies]
aws_lambda_events = "^0.8"
```
Add the dependency with Cargo: `cargo add aws_lambda_events`.

## Usage

Expand All @@ -28,9 +23,8 @@ For a list of supported AWS Lambda events and services, see [the crate reference

This crate divides all Lambda Events into features named after the service that the events are generated from. By default all events are enabled when you include this crate as a dependency to your project. If you only want to import specific events from this crate, you can disable the default features, and enable only the events that you need. This will make your project to compile a little bit faster, since rustc doesn't need to compile events that you're not going to use. Here's an example on how to do that:

```toml
[dependencies]
aws_lambda_events = { version = "^0.8", default-features = false, features = ["apigw", "alb"] }
```
cargo add aws_lambda_events --features apigw,alb
```

[//]: # 'badges'
Expand Down