Skip to content

Commit

Permalink
Setup a clippy configuration file
Browse files Browse the repository at this point in the history
This requires including the Minimum Supported Rust Version (MSRV).

Additionally, document in Cargo.toml the different places
where the MSRV needs to be kept in sync.
  • Loading branch information
Techcable committed Sep 6, 2023
1 parent f45958a commit 1e34879
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ edition = "2018"
#
# The first version of Cargo that supports this field was in Rust 1.56.0.
# In older releases, the field will be ignored, and Cargo will display a warning.
#
# This must be kept in sync with the following places:
# - .github/workflows/test.yml (Github Actions)
# - README.md
# - clippy.toml (Clippy config)
rust-version = "1.49.0"

[profile.release]
Expand Down
6 changes: 6 additions & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
msrv = "1.49.0"
# TODO: Consider adding this?
#
# I would much prefer supressing lints that break
# API compatibility on a case-by-case basis.
# avoid-breaking-exported-api = true

0 comments on commit 1e34879

Please sign in to comment.