An open API service indexing awesome lists of open source software.

https://github.com/klaatu01/serverless-rebar

Zero configuration scaffolding tool for AWS Serverless Rust projects.
https://github.com/klaatu01/serverless-rebar

aws-lambda rust scaffolding serverless serverless-framework

Last synced: 2 months ago
JSON representation

Zero configuration scaffolding tool for AWS Serverless Rust projects.

Awesome Lists containing this project

README

          

# Serverless Rebar

Zero Configuration scaffolding tool for serverless rust projects.

## About

Rebar uses your `serverless.yml` to create handler templates for a variety of [AWS Lambda Events](https://www.serverless.com/framework/docs/providers/aws/guide/events).

Cool... but why?

Well, the problem with rust + lambda is that each function needs to be its own binary:

```
rust-sls/
├── cargo.toml
├── serverless.yml
└── src/
└── bin/
├── handler_a.rs
└── handler_b.rs
```

## Installation

```serverless plugin install --name serverless-rebar```

## Configuration

```
custom:
rebar:
:
```

Parameter | Type | Description | Default
--- | --- | --- | ---
`libs` | `Array` | Any local libraries you would like to import by default into your handlers | -
`handlerDir` | `string` | The name of the directory under `src` where binaries are stored. | `bin`

## Usage

```serverless rebar```