Skip to content

About

My personal rust template.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

My personal cargo generate template, shamelessy stolen from rust-github/template, but enabling many lints.

Usage:

cargo generate ShE3py/rust-template

To update the lint store:

./check-lints.sh

It will ask for new lint levels as needed, e.g.:

warn: lint invalid_doc_attributes default was relaxed from deny to warn, while current value is deny
new value: deny

The .cargo/config.toml will be updated accordingly.


How it works:

  1. Rustc, Rustdoc and Clippy lints are dumped into default-lint-levels.stdout;
  2. The relint tool compare default-lint-levels.stdout (current run), default-lint-levels.txt(previous run), and lint-levels.txt (user options) in order to ask the user what level to pick for new and updated lints;
  3. On normal termination, lint-levels.txt and default-lint-levels.txt are updated accordingly;
  4. The reflag tool update the template with the appropriate flags.

About

My personal rust template.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages