shedrachokonofua / openfaas-rust-axum-template

Async rust template for OpenFaaS with Axum framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Async rust template for OpenFaaS with Axum framework

License:MIT License


Languages

Language:Dockerfile 71.7%Language:Rust 28.3%