Rust is a systems programming language that runs blazingly fast, prevents almost all crashes, and eliminates data races. This example app is based on nickel.rs and provides a basic http server. You can - and should - create more amazing things than this simple web server. Go and do it!

How it Works

When you push code to your repo, a Git postreceive hook runs and invokes the bin/compile script. This attempts to download a Rust environment using rustup for you into $OPENSHIFT_RUST_DIR/cache (A symlink is created in $OPENSHIFT_RUST_DIR/current). Once the environment is setup, the cart runs

cargo build --verbose --release

on a working copy of your source. The main file that you run will have access to two environment variables, $HOST and $PORT, which contain the internal address you must listen on to receive HTTP requests to your application.