Skip to content

A template for a tokio-rs app with logging & command line argument parser

License

Notifications You must be signed in to change notification settings

Finomnis/rust-tokio-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A template for a tokio-rs app with logging & command line argument parser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages