k0pernicus / cargo-template-rocket-base

A base cargo-template for building a Rocket application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cargo-template-rocket-base

A base cargo-template for building a Rocket application

Warning

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

How to use it ?

  1. Install cargo-generate:
cargo install cargo-generate
  1. Clone the Rocket application:
cargo generate --git https://github.com/k0pernicus/cargo-template-rocket-base --name yourprojectname
  1. Override the default toolchain in yourprojectname:
cd yourprojectname && rustup override set nightly
  1. Run the app:
cargo run

About

A base cargo-template for building a Rocket application

License:MIT License


Languages

Language:Rust 100.0%