This is a project template which can be used as a quickstart to building a Rust application with a CLI interface. It is using the fairly ubiquitous clap library to power argument parsing. The design choice is mainly due to the level of adoption and maintenance which clap
offers.
Motivations: After playing around with the C# and .NET toolchains, I've realized how powerful it is to be able to get a running start on projects and ideas. Hopefully this will be useful in lowering the entry barrier for others to start building with Rust.
- Install the rust toolchain in order to have cargo installed by following this guide.
- Install cargo-generate:
cargo install cargo-generate
. See the guide for more details.
- Generate your project:
cargo generate eugene-yzm/rust-cli-template
- Change into your new project directory:
cd <new-project-name>
- Build the project:
cargo b
- Run the built binary:
./target/debug/<new-project-name>
- Thats all! Happy building!