This is a Rust template for OpenFaaS using the Axum framework. It is an async(Tokio) alternative to the rust-http-template maintained by the OpenFaaS community. This template depends on Docker BuildKit to cache dependencies and speed up build times.
- Pull the template
$ faas template pull https://github.com/shedrachokonofua/openfaas-rust-axum-template
$ faas new --list
Languages available as templates:
- rust-axum
- Create a new function
$ faas new --lang rust-axum <fn-name>
- Build and deploy
DOCKER_BUILDKIT=1 faas-cli up -f <fn-name>.yml