Skip to content

krisnova/rust-nova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb09e23 · Aug 16, 2022

History

20 Commits
Aug 15, 2022
Aug 15, 2022
Aug 14, 2022
Aug 15, 2022
Aug 15, 2022
Aug 11, 2022
Aug 16, 2022
Aug 15, 2022
Aug 15, 2022

Repository files navigation

Rust template repository.

An opinionated starting point for rust projects such as

  • systemd services
  • command line tools
  • client programs
  • server programs
  • libraries and daemons

Logging

The program will log in 2 places by default:

  • stdout
  • syslog

There is a simple -v --verbose flag that can be toggled on/off to increase and decrease the level of the logs.

Enabling verbose mode will simply add Trace and Debug levels to the default configuration.

Default Runtime +Verbose
Info, Warn, Error +Trace, +Debug

Flags

We prefer flags over environmental variables for runtime configuration.

Flags can be added to the main.rs file following the official clap examples

Clion

I use clion to develop rust. I use a few features:

Auto Imports

This will automatically "fix" my use statements in the 2021 edition of Rust.

Editor > General > Auto Import > Rust
 [X] Import out-of-scope items on completion.

Auto Formatting

This will automatically rustfmt my code when I save.

Languages and Frameworks > Rust > Rustfmt
 [X] Run rustfmt on save

About

Rust template repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published