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

Commit

Permalink
Release 0.8.1 (#147)
Browse files Browse the repository at this point in the history
Fix issue with optional dependency.

Signed-off-by: David Calavera <[email protected]>
  • Loading branch information
calavera authored Mar 24, 2023
1 parent f31d5a3 commit 4ac1d74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
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 <[email protected]>",
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

0 comments on commit 4ac1d74

Please sign in to comment.