Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/finomnis/rust-tokio-template
A template for a tokio-rs app with logging & command line argument parser
https://github.com/finomnis/rust-tokio-template
cargo-generate clap rust tokio-rs
Last synced: 11 days ago
JSON representation
A template for a tokio-rs app with logging & command line argument parser
- Host: GitHub
- URL: https://github.com/finomnis/rust-tokio-template
- Owner: Finomnis
- License: apache-2.0
- Created: 2021-11-13T20:58:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T11:17:43.000Z (7 months ago)
- Last Synced: 2024-10-09T07:13:10.587Z (29 days ago)
- Topics: cargo-generate, clap, rust, tokio-rs
- Language: Rust
- Homepage:
- Size: 36.1 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-tokio-template
This template generates a subsystem-based tokio project ready to be compiled.
## Features
The following features get set up by this template:
- Command line argument parser (clap)
- Logging (tracing)
- Return code error propagation (miette)
- Tokio runtime
- Ctrl-C & SIGTERM handling
- Graceful subsystem shutdown## Usage
Install `cargo-generate`:
```
cargo install cargo-generate
```Generate into a subfolder:
```
cargo generate --git https://github.com/Finomnis/rust-tokio-template.git
```Generate into the current folder:
```
cargo generate --init --git https://github.com/Finomnis/rust-tokio-template.git
```