The 2.1.1 version introduced a regression where trailing comment after arrays are removed.
Running cargo-sort with 2.0.2 would format as:
[features]
uniffi = ["dep:uniffi"] # Uniffi bindings
wasm = [
"dep:tsify",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
] # WASM support
While 2.1.1 & 2.1.3 removes the comments and formats as:
[features]
uniffi = ["dep:uniffi"]
wasm = ["dep:tsify", "dep:wasm-bindgen", "dep:wasm-bindgen-futures"]
Full command used:
cargo sort --workspace --grouped
The 2.1.1 version introduced a regression where trailing comment after arrays are removed.
Running
cargo-sortwith2.0.2would format as:While
2.1.1&2.1.3removes the comments and formats as:Full command used:
cargo sort --workspace --grouped