Skip to content

cargo-generate compatible template to quickly spin up Rust CLI applications.

License

Notifications You must be signed in to change notification settings

eugene-yzm/rust-cli-template

Repository files navigation

Rust CLI Template

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.

Usage

Prerequisites

  • 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.

Steps

  1. Generate your project:
cargo generate eugene-yzm/rust-cli-template

Alt text

  1. Change into your new project directory:
cd <new-project-name>
  1. Build the project:
cargo b

  1. Run the built binary:
./target/debug/<new-project-name>

  1. Thats all! Happy building!

About

cargo-generate compatible template to quickly spin up Rust CLI applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages