# aws-lambda-rust

> CDK Constructs for AWS Lambda in Rust

Latest version **1.23.0-1** (published 2020-02-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install aws-lambda-rust
pnpm add aws-lambda-rust
yarn add aws-lambda-rust
bun add aws-lambda-rust
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.23.0-1 |
| Published | 2020-02-09 |
| First published | 2020-02-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 10.3.0 |
| Dependencies | 2 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrzej Ressel |
| Maintainers | jereksel |
| Keywords | aws, cdk, constructs, lambda, rust |

## Links

- npm: https://www.npmjs.com/package/aws-lambda-rust
- Repository: https://github.com/jereksel/aws-lambda-rust
- Issues: https://github.com/jereksel/aws-lambda-rust/issues
- npm.io page: https://npm.io/package/aws-lambda-rust

## Dependencies (2)

- [@aws-cdk/core](https://npm.io/package/@aws-cdk/core.md) 1.23.0
- [@aws-cdk/aws-lambda](https://npm.io/package/@aws-cdk/aws-lambda.md) 1.23.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.23.0-1 (latest) — 2020-02-09

## README

## Amazon Lambda Rust Library
<!--BEGIN STABILITY BANNER-->

---

![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)

> **This is unofficial CDK library based on Amazon Lambda Node.js Library**
---
<!--END STABILITY BANNER-->

This library provides constructs for Rust Lambda functions.

### Rust Function
Define a `RustFunction`:

```ts
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:
```ts
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](https://github.com/aws/aws-cdk/tree/master/packages/%40aws-cdk/aws-lambda).

---
_Source: https://npm.io/package/aws-lambda-rust · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
