From cba09404260513f190702cef1ec8099cd1ce8f31 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 24 Mar 2023 11:33:23 -0700 Subject: [PATCH] Release 0.8.1 Fix issue with optional dependency. Signed-off-by: David Calavera --- Cargo.toml | 2 +- README.md | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5e00c60..687b1cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 ", diff --git a/README.md b/README.md index 7e15c81..fe57b13 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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'