Skip to content

Add Cargo.toml example to README #480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
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
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ async fn func(event: LambdaEvent<Value>) -> Result<Value, Error> {
}
```

To run this function, you need the `lambda_runtime`, `serde_json` and `tokio` crates. An example `Cargo.toml` looks like this:

```
[package]
name = "basic"
version = "0.0.1
edition = "2018"

[dependencies]
lambda_runtime = "*"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using "*" to avoid having to update this README everytime a new version is released.

serde_json = "*
tokio = "*

```
## Building and deploying your Lambda functions

There are currently multiple ways of building this package: manually with the AWS CLI, with [AWS SAM](https://github.com/aws/aws-sam-cli), and with the [Serverless framework](https://serverless.com/framework/).
Expand Down