Registry / aws / cargo-lambda

cargo-lambda

JSON →
library1.9.1pypypiunverified

A Cargo subcommand for building, deploying, and testing AWS Lambda functions written in Rust. Current version 1.9.1, released on 2025-11-01. Active development with periodic releases.

pip install cargo-lambda
INSTALL
IMPORT
SIG · CARGO-LAMBDA
C
cargo-lambda
awspythonv1.9.1
Install
7.4s avg
Import
Disk
413MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.9.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 7.4s · import 0.000s · 415MB
413MB installed
● package 413MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cargo_lambda
import cargo_lambda
import cargo_lambda

Example using the cargo-lambda CLI from a Python environment.

# Build a Lambda function !cargo lambda build --release # Deploy to AWS !cargo lambda deploy --iam-role arn:aws:iam::123456789012:role/lambda-role # Invoke locally !cargo lambda invoke --data-file payload.json
cargo lambda --version
Debug
Known issues
gotchacargo-lambda requires Zig for cross-compilation to AWS Lambda's Amazon Linux 2 environment. Without Zig, builds may fail or produce incompatible binaries.
fix
Install Zig (e.g., via brew install zig or download from ziglang.org) and ensure it's in PATH.
affects: all
breakingIn v1.8.0, the '--iam-role' flag for 'cargo lambda deploy' changed behavior: it now only sets the role on initial creation, not on subsequent updates. To update an existing function's role, use 'cargo lambda update --iam-role'.
fix
Use 'cargo lambda update --iam-role arn:aws:iam::...' instead of 'deploy' for existing functions.
affects: >=1.8.0
Upgrade
Version history
1.9.1latest on PyPI · released Feb 26, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
cargo-lambda — pip install cargo-lambda · libregistry