Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
src Inital work on Rust support (#333) Nov 23, 2016
Cargo.toml Inital work on Rust support (#333) Nov 23, 2016
README.md Inital work on Rust support (#333) Nov 23, 2016

README.md

Using rust with functions

The easiest way to create a iron function in rust is via cargo and fn.

Prerequisites

First create an epty rust project as follows:

cargo init --name func --bin

Make sure the project name is func and is of type bin. Now just edit your code, once done you can create an iron function.

Creating an IronFunction

Simply run

fn init --runtime=rust <username>/<funcname>

This will create the func.yaml file required by functions, which can be built by running:

fn build

Testing

fn run