/rust-utility-template

Setup as a cargo workspace with core lib and CLI projects.

Primary LanguageRust

{{project-name}}

Quick Start

~$ cd {{project-name}}
~/{{project-name}}$ cargo run -- double 50

Project Structure

This repository is setup as a cargo workspace containing two rust projects: a library, and a CLI binary that brings it in as a dependency. The intention is to separate the core functionality from any presentation layer early on.

├── Cargo.lock
├── Cargo.toml
├── README.md
├── {{project-name}}
│   ├── Cargo.toml
│   └── src
│       └── lib.rs
└── {{project-name}}-cli
    ├── Cargo.toml
    └── src
        └── main.rs

About

This repository was generated using cargo-generate, with jcpst/rust-utility-template as the template.

cargo install cargo-generate
cargo generate --git jcpst/rust-utility-template --name {{project-name}}