cargo-lambda
Cargo subcommand to work with AWS Lambda
What it is and what it does
cargo-lambda is a Cargo subcommand—a plugin for Rust's package manager—that streamlines the process of building and deploying Rust code to AWS Lambda. It abstracts away much of the boilerplate and configuration needed to package Rust applications for Lambda's runtime environment. The tool depends on ziglang, a systems programming language used here to handle cross-platform compilation and linking.
Developers use cargo-lambda when they want to write Lambda functions in Rust rather than the officially supported languages. It handles compilation, bundling, and deployment tasks that would otherwise require manual configuration of build scripts and AWS tooling. The project is actively maintained and has a modest but engaged user base.
Use it for:
- Build and package Rust Lambda functions for deployment to AWS without manual build configuration
- Cross-compile Rust code for Lambda's Linux runtime from macOS or Windows development machines
- Integrate Rust Lambda development into a CI/CD pipeline using a single Cargo subcommand
- Deploy event-driven Rust microservices to AWS Lambda with minimal boilerplate
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
cargo-lambda is a Cargo subcommand that simplifies building and deploying Rust applications to AWS Lambda.
Yes, if you are writing Rust for AWS Lambda. The tool is actively maintained, has no known vulnerabilities, and carries a permissive MIT license. The medium install friction (ziglang dependency, platform-specific wheels) is a minor trade-off for the convenience it provides. Not relevant if you are not targeting Lambda or not using Rust.
Install
cargo-lambda on PyPI
pip
pip install cargo-lambdauv
uv add cargo-lambdapoetry
poetry add cargo-lambdaInstalling cargo-lambda
Before you install
Medium install friction due to the ziglang runtime dependency and platform-specific wheels. The project is actively maintained with recent commits and a stable release cadence.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install cargo-lambda==1.9.1
Once installed, use as a Cargo subcommand:
cargo lambda build
Requires ziglang as a runtime dependency; Python version support is unspecified in metadata.
Verify before relying
- Whether ziglang must be pre-installed or is bundled with the wheel distribution
- Minimum Python version required (not specified in metadata)
- Whether the tool works on platforms beyond the five wheel variants listed
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — ziglang |
| Maintenance | actively maintained — 169 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 101,497/month — #12,929 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cargo_lambda-1.9.1-py3-none-macosx_10_12_x86_64.whl; cargo_lambda-1.9.1-py3-none-macosx_11_0_arm64.whl; cargo_lambda-1.9.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; cargo_lambda-1.9.1-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl; cargo_lambda-1.9.1-py3-none-win_amd64.whl
Keywords: cargo, subcommand, aws, lambda
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
puccinialinInstalls Rust and Cargo into a temporary cache…
permissive · top 5,000 on PyPI
setuptools-rustsetuptools-rust is a setuptools plugin that…
permissive · top 5,000 on PyPI
tree-sitter-rustProvides a Rust language grammar for…
permissive · top 5,000 on PyPI
aws-lambda-buildersCompiles, builds, and packages AWS Lambda…
permissive · top 5,000 on PyPI
kappaKappa is a command-line tool that automates the…
permissive · top 15,000 on PyPI
chaliceChalice is a Python framework for building and…
permissive · top 15,000 on PyPI
zappaZappa packages and deploys Python WSGI and ASGI…
permissive · top 15,000 on PyPI
shuffle-sdkShuffle SDK provides a framework for building,…
permissive · top 15,000 on PyPI
soldrSoldr is a Python wrapper that downloads Rust…
permissive · top 15,000 on PyPI
fastapi-cloud-cliA command-line tool for deploying and managing…
permissive · top 1,000 on PyPI