This will only work if your application has a Cargo.toml and uses git. If you want to set a particular name for application, see heroku create --help

emk / heroku-buildpack-rust

submited by
Style Pass
2021-07-24 01:00:07

This will only work if your application has a Cargo.toml and uses git. If you want to set a particular name for application, see heroku create --help first.

This will install the diesel CLI at build time and make it available in your dyno. Migrations will run whenever a new version of your app is released. Add the following line to your RustConfig

By default, your application will be built using the latest stable Rust. Normally, this is pretty safe: New stable Rust releases have excellent backwards compatibility.

But you may wish to use nightly Rust or to lock your Rust version to a known-good configuration for more reproducible builds. To specify a specific version of the toolchain, use a rust-toolchain file in the format rustup uses.

Note: if you previously specified a VERSION variable in RustConfig, that will continue to work, and will override a rust-toolchain file.

If you have a project which combines both Rust and another programming language, you can insert this buildpack before your existing one as follows:

Leave a Comment
Related Posts