Skip to content

Latest commit

 

History

History
158 lines (92 loc) · 3.97 KB

changelog.md

File metadata and controls

158 lines (92 loc) · 3.97 KB

2.1.5

  • Upgrade the Docker base image to Debian Trixie (docker builds were broken)
  • Support several manifests with --workspace
  • Respect --grouped inside target-specific dependency tables

2.1.4

Bug Fixes

  • Fix a regression from 2.1.1 where comments after array values would be removed (#134)

2.1.3

Bug Fixes

  • Fix a regression for checking files with CRLF file endings (#131)

2.1.2

Bug Fixes

  • Don't error out on formatting-only diff unless --check-format is passed (#129)

2.1.1

Bug Fixes

  • Formatting of arrays in inline tables is more conservative now
    • In particular, such arrays are no longer converted to a single line,
    • and comments inside of them are now preserved

2.1.0

Bug Fixes

  • Fix workspace discovery & sorting when directory name has an extension (#121)
  • Apply formatting to arrays inside inline tables as well (#122)

Additions

  • Add support for sorting feature lists (behind the new config option sort_feature_list) (#122)
  • --config flag for specifying a custom config file (#124)

Other Improvements

  • Upgrade the toml crate to 0.25, bringing support for TOML 1.1 (#126)

2.0.2

Bug fixes

  • Set the Ubuntu release builder to ubuntu-22.04 to ensure that pre-built cargo-sort binaries can run on ubuntu-22.04 GitHub Actions runners and not get an error message about GLIBC_2.38 not found.

2.0.1

Bug fixes

  • Fix unintended merging of dependency groups with --grouped when dotted key syntax was used

2.0.0

This release is a big one! Special thanks go out to @thomaseizinger who fixed a lot of regressions from the initial toml_edit upgrade. Thanks also to @ssrlive for contributing a bunch of improvements.

Highlights

  • Upgrade toml_edit to support more TOML syntax (in particular, something.workspace = true)
  • Format Cargo.toml files by default
    • Use -n or --no-format to disable this
    • --check mode also verifies formatting unless you pass the abovementioned flag
  • workspace.dependencies (and build- / dev- dependencies) are now also sorted
  • target.'cfg(something)'.dependencies now go right after dependencies
    • The same goes for target-specific dev-dependencies

Other Improvements

  • Remove unused dependencies
  • In non-check mode, report whether files were already sorted or not

1.1.0

Yanked, because it did invalid changes in many situations.

1.0.9

Bug Fixes

  • The --workspace feature now respects the exclude array

1.0.8

Update

  • Update clap from 2.34 to 4.0.10

Feature

  • Add --check-format flag
    • If set, cargo-sort will check formatting (allows only checking formatting)
    • Thanks matze
  • DockerHub builds added

1.0.7

Bug Fixes

1.0.6

Bug Fixes

1.0.5

Feature

1.0.4

Bug Fixes

  • Fix trailing comma in multi-line arrays

1.0.3

  • Simplify output of running cargo-sort
  • Add --order flag to specify ordering of top-level tables

1.0.2

Overhaul

  • Remove toml-parse crate in favor of toml_edit
  • Changed name from cargo-sort-ck to cargo-sort