A collection of several small recipes containing routes on most common use cases, employing Rocket, a Web Framework developed in Rust programming language.
Setting up a development environment for Rust is simple: it's a matter of installing and running rustup and that's it!. If you are on a Unix-like machine, this is all you need:
#!/bin/bash
curl https://sh.rustup.rs -sSf | sh
Note: Rocket requires the nightly tool chain at the moment. You can either setup the default toolchain globally or you per project. This is how you can do it:
rustup default nightly
Make sure you ran rustup as per instructions above.
Downloading and running these recipes is easy. Just follow the instructions below:
#!/bin/bash
mkdir -p $HOME/workspace
cd $HOME/workspace
git clone http://github.com/frgomes/rocket-recipes
cd rocket-recipes
cargo test