~$ cd {{project-name}}
~/{{project-name}}$ cargo run -- double 50
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
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}}