Skip to content

1.40.0

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Sep 09:14
· 74 commits to master since this release

Release Notes

  • cargo-insta no longer panics when running cargo test --accept --workspace
    on a workspace with a default crate. #532

  • MSRV for insta has been raised to 1.60, and for cargo-insta to 1.64.

  • Added support for compact debug snapshots (assert_compact_debug_snapshot). #514

  • Deprecate --no-force-pass in cargo-insta. The --check option covers the
    same functionality and has a clearer name. #513

  • Inline snapshots now use the required number of #s to escape the snapshot
    value, rather than always using ###. This allows snapshotting values which
    themselves contain ###. If there are no existing # characters in the
    snapshot value, a single # will be used. #540

  • Inline snapshots can now be updated with --force-update-snapshots. #569

  • cargo insta test accepts multiple --exclude flags. #520

  • test runner in insta's yaml config works. #544

  • Print a warning when encountering old snapshot formats. #503

  • Group the options in cargo insta --help, upgrade to clap from structopt. #518

  • No longer suggest running cargo insta message when running cargo insta test --check. #515

  • Print a clearer error message when accepting a snapshot that was removed. #516

  • Mark require-full-match as experimental, given some corner-cases are currently difficult to manage. #497

  • Add a new integration test approach for cargo-insta and a set of integration tests. #537

  • Enable Filters to be created from IntoIterator types, rather than just Vecs. #570

  • Implemented total sort order for an internal Key type correctly. This prevents potential
    crashes introduced by the new sort algorithm in Rust 1.81. #586

Install cargo-insta 1.40.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.40.0/cargo-insta-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.40.0/cargo-insta-installer.ps1 | iex"

Download cargo-insta 1.40.0

File Platform Checksum
cargo-insta-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
cargo-insta-x86_64-apple-darwin.tar.xz Intel macOS checksum
cargo-insta-x86_64-pc-windows-msvc.zip x64 Windows checksum
cargo-insta-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum
cargo-insta-x86_64-unknown-linux-musl.tar.xz x64 MUSL Linux checksum