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

Commit 4ac1d74

Browse files
authored
Release 0.8.1 (#147)
Fix issue with optional dependency. Signed-off-by: David Calavera <david.calavera@gmail.com>
1 parent f31d5a3 commit 4ac1d74

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws_lambda_events"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
description = "AWS Lambda event definitions"
55
authors = [
66
"Christian Legnitto <christian@legnitto.com>",

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ This crate provides strongly-typed [AWS Lambda event structs](https://docs.aws.a
77

88
## Installation
99

10-
Include the crate in your `Cargo.toml`:
11-
12-
```toml
13-
[dependencies]
14-
aws_lambda_events = "^0.8"
15-
```
10+
Add the dependency with Cargo: `cargo add aws_lambda_events`.
1611

1712
## Usage
1813

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

2924
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:
3025

31-
```toml
32-
[dependencies]
33-
aws_lambda_events = { version = "^0.8", default-features = false, features = ["apigw", "alb"] }
26+
```
27+
cargo add aws_lambda_events --features apigw,alb
3428
```
3529

3630
[//]: # 'badges'

0 commit comments

Comments
 (0)