Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krisnova/rust-nova
Rust template repository.
https://github.com/krisnova/rust-nova
Last synced: 4 days ago
JSON representation
Rust template repository.
- Host: GitHub
- URL: https://github.com/krisnova/rust-nova
- Owner: krisnova
- License: mit
- Created: 2022-08-11T10:32:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-16T10:44:31.000Z (about 2 years ago)
- Last Synced: 2024-11-01T01:42:27.806Z (11 days ago)
- Language: Rust
- Size: 10.9 MB
- Stars: 73
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/clap-rs/clap/tree/v2.33.0/examples)
# Clion
I use [clion](https://www.jetbrains.com/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
```