Skip to content
Simple Rust webserver built using Cargo, deployable to Heroku.
Rust
Latest commit a49fb47 Jun 16, 2015 @emk Merge pull request #2 from dhodder/patch-1
Add note that the application is also Cloud Foundry-compatible
Failed to load latest commit information.
src
.gitignore Create initial Iron-based example server Jul 12, 2014
.travis.yml travis: Update to build with travis-cargo May 26, 2015
Cargo.lock Update for latest Rust May 10, 2015
Cargo.toml travis: Update to build with travis-cargo May 26, 2015
Procfile Look for "hello" in the release directory Nov 5, 2014
README.md Add note that the application is also Cloud Foundry-compatible Jun 13, 2015
RustConfig Deploy using Rust 1.0.0 May 26, 2015
app.json Create an app.json file for "Deploy to Heroku" button Sep 17, 2014

README.md

To deploy this application to Heroku, use this button:

Deploy

Or, if you'd prefer to use the command line, try running:

git clone https://github.com/emk/heroku-rust-cargo-hello.git
cd heroku-rust-cargo-hello
heroku create --buildpack https://github.com/emk/heroku-buildpack-rust.git
git push heroku master

This should make a local copy of this application and deploy it to Heroku.

For further instructions, see Deploying Rust applications to Heroku, with example code for Iron. You may also be interested in the source code for the buildpack.

Does this work with the latest version of Rust?

This application works with version 1.0.0-beta.4 of Rust, which theoretically means that any future language breakage should be minimal. However, Iron's API is not yet officially stable.

If this is green, then you should be able to install the latest Rust compiler, run cargo update and build this code successfully:

Build Status

(Note that we only check the build once per day, so it's possible that things have broken since the latest build.)

If the build is failing, you have two choices:

  1. Install Rust and Cargo from the URLs listed in the RustConfig file and refrain from running cargo update.
  2. Update the code to work with the latest release of Rust. Please feel free to send me a pull request!

Does this work with Cloud Foundry?

The application can be deployed to Cloud Foundry as an alternative to Heroku. From the command line, run:

cd heroku-rust-cargo-hello
cf push heroku-rust-cargo-hello -b https://github.com/emk/heroku-buildpack-rust.git
Something went wrong with that request. Please try again.