Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Building Lambda functions with Rust

Focus mode
Building Lambda functions with Rust - AWS Lambda

Because Rust compiles to native code, you don't need a dedicated runtime to run Rust code on Lambda. Instead, use the Rust runtime client to build your project locally, and then deploy it to Lambda using the provided.al2023 or provided.al2 runtime. When you use provided.al2023 or provided.al2, Lambda automatically keeps the operating system up to date with the latest patches.

Note

The Rust runtime client is an experimental package. It is subject to change and intended only for evaluation purposes.

Tools and libraries for Rust
  • AWS SDK for Rust: The AWS SDK for Rust provides Rust APIs to interact with Amazon Web Services infrastructure services.

  • Rust runtime client for Lambda: The Rust runtime client is an experimental package. It is subject to breaking changes and not recommended for production.

  • Cargo Lambda: This library provides a command line application to work with Lambda functions built with Rust.

  • Lambda HTTP: This library provides a wrapper to work with HTTP events.

  • Lambda Extension: This library provides support to write Lambda Extensions with Rust.

  • AWS Lambda Events: This library provides type definitions for common event source integrations.

Sample Lambda applications for Rust
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.