This guide walks through building and deploying Rust Lambda functions using Cargo Lambda.
- Rust (stable or nightly)
- Cargo Lambda
- Node.js and NPX (for NX build commands)
- AWS CLI configured with appropriate permissions
Our project uses NX for build orchestration, with Rust Lambda functions located in the rust_lambda
workspace.
To build the Rust Lambda functions:
# Build the Lambda function
npx nx run rust_lambda:build
This command will:
- Compile the Rust code for AWS Lambda
- Package it into a deployment-ready ZIP file
- Output the ZIP file to
dist/target/rust_lambda/lambda/hello_world_handler/bootstrap.zip