A base cargo-template for building a Rocket application
To use the Rocket crate, you must use a Nighly version of Rust.
rustup install nightly
# OR, if you already have a nightly version
rustup update nightly
Do not forget to override the default toolchain
- Install cargo-generate:
cargo install cargo-generate
- Clone the Rocket application:
cargo generate --git https://github.com/k0pernicus/cargo-template-rocket-base --name yourprojectname
- Override the default toolchain in
yourprojectname
:
cd yourprojectname && rustup override set nightly
- Run the app:
cargo run