A plugin for serverless to run Rust on AWS Lambda. It uses Rust Musl Bulder.
Compiles a Rust binary per function, spawns it as a process, and passes data back and forth through stdio.
This is still super early and more of a POC. More features and testing are still needed.
- Musl will work for the resultant binary
- Docker is installed and on
PATH
(in Node's runtime) - Cargo is at
~/.cargo/bin
sls deploy
sls deploy function
sls invoke local
sls invoke
sls create --template
would be nice. (is this possible?)- Python and Node runtime support (currently only Node 6.10)
- Publish to npm
$ git clone https://github.com/dobrite/serverless-rust.git
... elsewhere in your serverless project
npm install --save /path/to/this/repo
then add in serverless.yml
:
plugins:
- serverless-rust
Based on Rust on Lambda