Skip to content

Introduction

Cargo Lambda provides several subcommands for different tasks:

The new subcommand creates a basic Rust package from a well defined template to help you start writing AWS Lambda functions in Rust.

The build subcommand compiles AWS Lambda functions natively and produces artifacts which you can then upload to AWS Lambda or use with other ecosystem tools, like SAM Cli or the AWS CDK.

The watch subcommand boots a development server that emulates interactions with the AWS Lambda control plane. This subcommand also reloads your Rust code as you work on it.

The invoke subcommand sends requests to the control plane emulator to test and debug interactions with your Lambda functions. This command can also be used to send requests to remote functions once deployed on AWS Lambda.

The deploy subcommand uploads functions to AWS Lambda. You can use the same command to create new functions as well as update existent functions code.

Released under the MIT License.