To deploy this application to Heroku, use this button:
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
cargo update and build this code successfully:
(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:
- Install Rust and Cargo from the URLs listed in the
RustConfigfile and refrain from running
- 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