skillfed

cargo-lambda

Cargo subcommand to work with AWS Lambda

cargo-lambda v1.9.1 101.5K downloads/30d#12,929 on PyPI919
Permissive license MIT Active released

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-lambda

uv

uv add cargo-lambda

poetry

poetry add cargo-lambda

Installing 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

rust aws lambda deploymentcargo lambda subcommandbuild rust for aws lambdaserverless rust toolingaws lambda rust cli
aws-lambdarust-toolingserverless

More Build Tools packages