Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 771 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 771 Bytes

openfaas-rust-axum-template

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.

Usage

  1. Pull the template
$ faas template pull https://github.com/shedrachokonofua/openfaas-rust-axum-template

$ faas new --list
Languages available as templates:
- rust-axum
  1. Create a new function
$ faas new --lang rust-axum <fn-name>
  1. Build and deploy
DOCKER_BUILDKIT=1 faas-cli up -f <fn-name>.yml