Skip to content

Releases: foresterre/cargo-msrv

cargo-msrv v0.16.0-beta.1

05 Feb 00:31
Compare
Choose a tag to compare
Pre-release

(Changelog for 0.16.0 is in progress, and may be incomplete)

Added

  • Subcommand cargo msrv verify now supports setting a custom Rust version via the --rust-version <VERSION> argument,
    which can be used to check for a crate's compatibility against a specific Rust version.
  • Added flag --write-msrv to cargo msrv (find), which upon finding the MSRV writes its value to the Cargo manifest.
  • Added option to refer to a specific crate using its Cargo manifest (with --manifest-path) instead of its path (with --path)
  • Added a 'minimal' output option intended for machine-readable use when full json output is undesirable.

Changed

  • CLI options are now grouped.
  • Option --min <version> now also accepts two component semver major.minor versions, in addition to full three component (strict) SemVer versions, and edition specifiers like "2015", "2018" and "2021".
  • Option --max <version> now also accepts two component semver major.minor versions, in addition to full three component (strict) SemVer versions.
  • The rust-releases index is now only fetched for subcommands which depend on it.
  • Renamed --toolchain-file to --write-toolchain-file to emphasise that the toolchain-file is an output.
  • Subcommand cargo msrv set will now default to writing a regular TOML table for the metadata MSRV fallback value, instead of an inline table.
  • The rust-toolchain file will now be overwritten if a rust-toolchain file was already present.

Fixed

  • Subcommand cargo msrv set will now return an error when the Cargo manifest solely consists of a virtual workspace.
  • The program will no longer return an unformatted message when a command failed and the output format was set to json.
  • Fix issue where reading the fallback MSRV from a TOML inline table was not possible.
  • Fix an index out-of-bounds panic which occurred if the filtered Rust releases search space was empty

cargo-msrv v0.15.1

24 Feb 13:21
Compare
Choose a tag to compare

NB: Check the releases page to also find more recent beta releases.

0.15.1 - 2022-02-24

In this release a license generation step was fixed, which caused the automated binary builds to fail.
In addition, a Cargo feature toggle was added which adds a feature gate for the rust-dist release source of
the rust-releases crate. This allows people who build from source to build cargo-msrv without the default
features (i.e. without rust-dist), which reduces build time and binary size.

This release does not contain user-facing changes, hence the lack of changelog entries for this version.

cargo-msrv v0.15.0

23 Feb 21:48
Compare
Choose a tag to compare

0.15.0 - 2022-02-23

Added

  • Flag --no-user-output which disables user output.
  • Subcommand cargo msrv set, which can be used to write a given MSRV to the Cargo manifest.

Changed

  • ⚠️ Breaking change: Changed default cargo-msrv (find) check command from cargo check --all to cargo check.
    • Revert to the old behaviour by running cargo-msrv with a custom check command: cargo msrv -- cargo check --all.

Removed

  • ⚠️ Breaking change: Value void was removed as a valid format for the --output-format option.
    • Use new --no-user-output flag instead

Special thanks: @cschramm

cargo-msrv v0.14.2

09 Feb 02:34
Compare
Choose a tag to compare

0.14.2 - 2022-02-09

  • Fixed: Unable to set a custom check command when calling the cargo-msrv verify subcommand.

cargo-msrv v0.14.1

02 Feb 22:34
Compare
Choose a tag to compare

0.14.1 - 2022-02-02

  • Fixed: Regression in the new bisection implementation introduced in v0.14.0, where the alogithm would stop one step too early.

cargo-msrv v0.14.0

30 Jan 23:54
Compare
Choose a tag to compare

0.14.0 - 2022-01-30

  • Added: Verify as a subcommand
  • Deprecated: Deprecated the cargo msrv --verify flag in favour of the cargo msrv verify subcommand.
  • Changed: Changed terminology from 'Determine MSRV' to 'Find MSRV' for top level cargo-msrv command.
  • Added: Flag --linear to the top cargo-msrv command ('find msrv') to choose explicitly for the linear search strategy.
  • Changed: The default search method is now bisect instead of linear. ⚠
  • Added: Feedback messages printed after each check, allowing users to see why certain Rust versions are not compatible.
  • Added: Flag --no-check-feedback which disables the feedback messages printed after each check.

cargo-msrv v0.13.0

25 Dec 06:24
Compare
Choose a tag to compare

0.13.0 - 2021-12-25

  • Fixed: Help text of the list subcommand will now be shown correctly
  • Fixed: The json output of the list subcommand will now also report when it's done
  • Changed: Renamed list subcommand option "type" to "variant"
  • Added: Subcommand "show" which shows the MSRV for the crate in your current working directory
  • Added: Logging to a file (default) or the stdout for developer information; can also be disabled entirely
  • Added: Output format option 'void', which disables user targeted output
  • Changed: cargo-msrv now exits with a non-zero exit code on failure
  • Changed: Clarify the reason when the program fails because of an IO error
  • Added: Book covering cargo-msrv topics, and its subcommands
  • Changed: Suggest package.rust-version is missing when MSRV can't be found in the Cargo manifest
  • Fixed: Return non-zero exit code when verify command fails

cargo-msrv v0.12.0

01 Nov 23:31
Compare
Choose a tag to compare

0.12.0 - 2021-11-01

  • Added subcommand list which lists the MSRV's of dependencies as specified by crate authors using the rust-version key.
  • You can now also simply run cargo-msrv standalone, i.e. cargo-msrv instead of cargo msrv

Only list is available as a subcommand. The determine-msrv and verify-msrv commands have not been ported to subcommands yet, but are planned to.

Also of interest:

cargo-msrv v0.11.1

28 Oct 17:53
Compare
Choose a tag to compare

0.11.1 - 2021-10-28

This release is equal to v0.11.0, except that the automated 'release build and packaging' task was fixed.
The release notes for v0.11.0 have been included below.

0.11.0 - 2021-10-28

  • Added --release-source which allows users to select a rust-releases source. Thanks @pjsier
  • A message is now shown to inform users when the index is being updated. Thanks @pjsier
  • Verify can now also read and use the package.rust-version MSRV key in the Cargo.toml manifest.
  • When the package.edition is set, the first release supporting this edition will now be set as the minimum version.
    This behaviour can be disabled by providing the --no-read-min-edition flag. Thanks @clanghout

cargo-msrv v0.11.1-testing.3

28 Oct 09:45
Compare
Choose a tag to compare
Pre-release
Fix macOS packaging task