NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #852 most downloaded on crates.io
A snapshot testing library for Rust
Last release today
03 Oct 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
8 years old
122 releases · first in 2019
Fixed a bug where an extra newline was emitted following the snapshot header.
assertion_line is no longer retained in snapshots. (#218)Add support for sorting redactions (sorted_redaction and Settings::sort_selector).
sorted_redaction and Settings::sort_selector). (#212)Upgrade Notes:
Insta used to detect the current test name by using the current thread name. This appeared to work well but unfortunately ran into various limitations. In particular in some cases the thread name was truncated, missing or did not point to the current test name. To better support different platforms and situations insta now uses the function name instead.
This however changes behavior. In particular if you are using a helper function to assert, a different snapshot name will now be used. You can work around this issue by using a helper macro instead or to explicitly pass a snapshot name in such situations.
One column per quarter.
Trim down some unnecessary dependencies and switch to once_cell.
once_cell. (#208)Update internal dependencies for console and ron.
cargo-insta now correctly handles the package (-p) argument on test when deleting unreferenced snapshots.
cargo-insta now correctly handles the package (-p) argument
on test when deleting unreferenced snapshots. (#201)Added the ability to redact into a key.
cargo-insta. (#191)Fixed an issue where selectors could not start with underscore.
cargo test. (#183)Box::leak. (#185)INSTA_WORKSPACE_ROOT is set, the value is used as the manifest
directory rather than whatever CARGO_MANIFEST_DIR was set to at compile
time. (#180)Removed an accidental debug print.
Normalize newlines to unix before before asserting.
Fix a bug with empty lines in inline snapshots.
- Lower Rust support to 1.41.0
Bump similar dependency to reintroduce support for Rust 1.43.0
Change CSV serialization format to format multiple structs as multiple rows.
Replace difference with similar.
- API documentation updates.
Fixed glob not working correctly.
Add pending-snapshots parameter to cargo-insta.
pending-snapshots parameter to cargo-insta.cargo-insta now honors ignore files. This can be overridden
with --no-ignore.cargo-insta now supports the vscode extension.Add --delete-unreferenced-snapshots parameter to cargo-insta.
--delete-unreferenced-snapshots parameter to cargo-insta.globset crate for the glob feature.INSTA_UPDATE is set to always or unseen it won't
fail on execution.Expose more useful methods from Content.
Content.Fix invalid offset calculation for inline snapshot
Added the INSTA_SNAPSHOT_REFERENCES_FILE environment variable to support deletions of unreferenced snapshot files.
INSTA_SNAPSHOT_REFERENCES_FILE environment variable to support
deletions of unreferenced snapshot files. (#136)prepend_module_to_snapshot flag to disable prepending of module
names to snapshot files. (#133)console dependency optional. The colors feature can be disabled now
which disables colored output.Changed globs to also include directories not just files.
Nothing published for this version
Add Settings::bind_async when the async feature is enabled.
Settings::bind_async when the async feature is enabled. (#121)console dependency to 0.11. (#124)glob!. (#123)cargo-insta from workspace and add Cargo.lock. (#116)Made snapshot names optional for inline snapshots.
glob support. (#112)MetaData fields internal. (#111)Added test output control (INSTA_OUTPUT envvar).
INSTA_OUTPUT envvar). (#103)Dependency bump for console (lowers total dependency count)
console (lowers total dependency count)cargo insta in help pages.Added support for INSTA_UPDATE=unseen to write out unseen snapshots without review
INSTA_UPDATE=unseen to write out unseen snapshots without review (#96)backtrace feature which adds support for test name (and thus snapshot name)
recovery from the backtrace if rust-test is not used in concurrent mode (#94, #98)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →