Installation
Cargo Lambda uses Zig to link your functions for Linux systems. The installers below also install Zig for you if it's not in your system.
On Linux and MacOS
With Homebrew:
brew install cargo-lambda/tap/cargo-lambdabrew install cargo-lambda/tap/cargo-lambdaWith Curl:
curl -fsSL https://cargo-lambda.info/install.sh | shcurl -fsSL https://cargo-lambda.info/install.sh | shWith PyPI:
pip3 install cargo-lambdapip3 install cargo-lambdaWith Nix:
nix-env -iA nixpkgs.cargo-lambdanix-env -iA nixpkgs.cargo-lambdaOn Windows
With WinGet:
winget install CargoLambda.CargoLambdawinget install CargoLambda.CargoLambdaWith Scoop:
scoop bucket add cargo-lambda https://github.com/cargo-lambda/scoop-cargo-lambda
scoop install cargo-lambda/cargo-lambdascoop bucket add cargo-lambda https://github.com/cargo-lambda/scoop-cargo-lambda
scoop install cargo-lambda/cargo-lambdaWith PowerShell:
irm https://cargo-lambda.info/install.ps1 | iexirm https://cargo-lambda.info/install.ps1 | iexWith Docker
You can run Cargo Lambda directly from our official Docker image:
docker pull ghcr.io/cargo-lambda/cargo-lambdadocker pull ghcr.io/cargo-lambda/cargo-lambdaBinary releases
You can also download any Cargo Lambda binary from the Release page.
WARNING
When you download a binary directly, Zig won't be installed for you. You can run cargo lambda system --install-zig to get a list of possible installers for your system.
You can use a tool like Cargo Binstall to automatically download a binary package from GitHub:
cargo binstall cargo-lambdacargo binstall cargo-lambdaBuilding from source
You can install Cargo Lambda on your host machine from its source code repository. This method is not recommended because the binary will be compiled in your system, which we cannot always guarantee. Using a package manager, or pre-built binaries is always more encouraged to have a functional service and avoid installation issues. Cargo Lambda does not publish its source in crates.io anymore because we cannot guarantee the reproducibility of the build when using cargo install.
git clone https://github.com/cargo-lambda/cargo-lambda && \
cd cargo-lambda && \
make install-releasegit clone https://github.com/cargo-lambda/cargo-lambda && \
cd cargo-lambda && \
make install-releaseWARNING
Cargo Install compiles the binary in your system, which usually takes more than 10 minutes. This method doesn't install Zig either, which is a requirement if you want to cross compile packages from macOS or Windows to Lambda Linux environments.