https://github.com/oliverdding/cli-template-rs
cargo template for rust command line application
https://github.com/oliverdding/cli-template-rs
cargo-generate rust-cli template
Last synced: about 1 month ago
JSON representation
cargo template for rust command line application
- Host: GitHub
- URL: https://github.com/oliverdding/cli-template-rs
- Owner: oliverdding
- License: apache-2.0
- Created: 2023-08-01T02:18:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T07:51:50.000Z (about 2 years ago)
- Last Synced: 2023-12-08T08:36:11.786Z (about 2 years ago)
- Topics: cargo-generate, rust-cli, template
- Language: Rust
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cli Template for Rust
A simple template with [cargo generate](https://github.com/cargo-generate/cargo-generate) for quickly rewriting everything in rust. :^)
## How to use?
Generate into a subfolder:
```bash
cargo generate --git https://github.com/oliverdding/cli-template-rs.git
```
Generate in the current folder:
```bash
cargo generate --init --git https://github.com/oliverdding/cli-template-rs.git
```
## What does this template contains?
- Layered configuration with [config-rs](https://github.com/mehcode/config-rs)
- Command line argument parser and shell completions with [clap](https://github.com/clap-rs/clap)
- XDG support with [directories](https://github.com/dirs-dev/directories-rs)
- Logging and tracing with [tracing](https://github.com/tokio-rs/tracing)
- Return code error propagation with [miette](https://github.com/zkat/miette)
- Async runtime with graceful shutdown support with [tokio](https://github.com/tokio-rs/tokio)