View a markdown version of this page

Building Lambda functions with Rust - AWS Lambda

Building Lambda functions with Rust

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 an OS-only runtime. When you use an OS-only runtime, Lambda automatically keeps the operating system up to date with the latest patches.

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 makes it easy to run Lambda functions written in Rust.

  • Cargo Lambda: This is a third-party open-source extension to the Cargo command-line tool that simplifies building and deploying Rust Lambda functions.

  • 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

Warning Javascript is disabled or is unavailable in your browser.

To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.

AltStyle によって変換されたページ (->オリジナル) /