Crates.io | cargo-manifmt |
lib.rs | cargo-manifmt |
version | 0.1.5 |
source | src |
created_at | 2019-12-28 22:41:10.601739 |
updated_at | 2022-02-13 00:48:30.790179 |
description | rustfmt for your Cargo.toml. |
homepage | |
repository | https://github.com/benesch/cargo-manifmt |
max_upload_size | |
id | 193079 |
size | 63,169 |
rustfmt for your Cargo.toml.
⚠️Warning: cargo-manifmt is still under active development. ⚠️
Running cargo-manifmt may silently corrupt your Cargo.toml file. Commit before running cargo-manifmt, and inspect the resulting diff by hand.
Installation:
$ cargo install cargo-manifmt
Then, from within a Cargo workspace, run:
$ cargo manifmt
All Cargo.toml manifests within the workspace will be reformatted in place according to cargo-manifmt's hardcoded style guide. There are intentionally no configuration options.
foo-dep = "1"
to foo-dep = "1.0.0"
.Comments are only preserved if they appear on their own lines above an entry in a features or dependencies table. If you have comments elsewhere in your Cargo.toml, cargo-manifmt will silently remove them!
cargo-manifmt does not yet understand all entries in a Cargo.toml, and may inadvertently remove configuration it does not understand. This is a bug, of course, so please file an issue!