aws-lambda-rust
TypeScript icon, indicating that this package has built-in type declarations

1.23.0-1 • Public • Published

Amazon Lambda Rust Library


Stability: Experimental

This is unofficial CDK library based on Amazon Lambda Node.js Library


This library provides constructs for Rust Lambda functions.

Rust Function

Define a RustFunction:

new lambda.RustFunction(this, 'my-handler', {
    executable: "my_lambda"
});

By default, the construct will use directory where cdn was invoked as directory where Cargo files are located.

Alternatively, directory can be specified:

new lambda.RustFunction(this, 'MyFunction', {
  directory: '/path/to/directory/with/Cargo.toml'
  executable"my_lambda"
});

All other properties of lambda.Function are supported, see also the AWS Lambda construct library.

/aws-lambda-rust/

    Package Sidebar

    Install

    npm i aws-lambda-rust

    Weekly Downloads

    5

    Version

    1.23.0-1

    License

    Apache-2.0

    Unpacked Size

    18.8 kB

    Total Files

    16

    Last publish

    Collaborators

    • jereksel