https://github.com/gsquire/toml-sorted
A simple tool to check if a manifest is sorted
https://github.com/gsquire/toml-sorted
cargo rust
Last synced: about 1 year ago
JSON representation
A simple tool to check if a manifest is sorted
- Host: GitHub
- URL: https://github.com/gsquire/toml-sorted
- Owner: gsquire
- License: mit
- Created: 2019-06-01T22:50:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-15T19:49:02.000Z (almost 7 years ago)
- Last Synced: 2025-03-01T23:39:36.931Z (over 1 year ago)
- Topics: cargo, rust
- Language: Rust
- Homepage: https://crates.io/crates/toml-sorted
- Size: 16.6 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# toml-sorted
This is a small command that takes a manifest as a single argument and checks if various fields
are sorted. It returns 0 if all fields are sorted and 1 otherwise. This crate was created in response to
an [RFI here](https://github.com/dtolnay/request-for-implementation/issues/29).
[](https://travis-ci.org/gsquire/toml-sorted)
## Install
```sh
cargo install toml-sorted
```
## Usage
```sh
toml-sorted /path/to/Cargo.toml
```
## Implementation
It currently checks the following fields in a manifest:
- [dependencies]
- [dev-dependencies]
- [build-dependencies]
- [workspace.members]
- [workspace.exclude]
## License
MIT