Skip to content

dobrite/serverless-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless-Rust

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.

Assumes

  • Musl will work for the resultant binary
  • Docker is installed and on PATH (in Node's runtime)
  • Cargo is at ~/.cargo/bin

Works (at least on my machine)

  • sls deploy
  • sls deploy function
  • sls invoke local
  • sls invoke

Nice-to-haves

  • sls create --template would be nice. (is this possible?)
    • Python and Node runtime support (currently only Node 6.10)
  • Publish to npm

Installation (for now)

$ 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

About

Run Rust on AWS Lambda

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published