2 releases

0.1.1 May 10, 2022
0.1.0 Feb 21, 2022

#391 in Cargo plugins

Download history 69/week @ 2023-12-04 18/week @ 2023-12-11 51/week @ 2023-12-18 12/week @ 2023-12-25 37/week @ 2024-01-01 67/week @ 2024-01-08 58/week @ 2024-01-15 42/week @ 2024-01-22 53/week @ 2024-01-29 19/week @ 2024-02-05 27/week @ 2024-02-12 65/week @ 2024-02-19 45/week @ 2024-02-26 67/week @ 2024-03-04 65/week @ 2024-03-11 99/week @ 2024-03-18

279 downloads per month

Apache-2.0 OR MIT

14KB
235 lines

cargo-toml-lint - a linter for Cargo.toml

build crates.io discord

Features:

  • Verify toml syntax
  • Run cargo verify-project
  • Check that [dependencies] and [dev-dependencies] are sorted alphabetically
  • Check that [[test]] are sorted by test name
  • Check all members of top-level object arrays (like) [[test]] are placed contiguously

This is a best-effort linter. Currently custom parsing is really simplified, so it may:

  • Reject some valid files if they are written in some particularly obscure way
  • Accept some files that violate the given linting rules

However, any such issues are considered bugs and a fix PR would be appreciated.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~3.5MB
~66K SLoC