cargo / insta
insta
What changed in insta 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.
1 breaking4 new APIs and options2 behavior and defaults2 tooling9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initinsta 118 changes
Breaking changes 1
The Comparator trait now requires Send + Sync bounds, consistent with Arc-based storage.
New APIs and options 4
Snapshot names can now accept Option<&OsStr>, such as Path::file_name(), without explicit string conversion.
Adds --nextest-profile to select the nextest profile.
Opt in to YAML literal blocks for multiline strings in snapshot metadata fields such as description and expression.
Adds a setting that removes ANSI escape sequences from snapshot content before comparison; requires the filters feature.
Behavior and default changes 2
The --snapshot filter accepts partial paths by matching any trailing path suffix, so a bare snapshot filename works.
Explicit snapshot handling options such as --accept now take precedence over CI=true, so users can override the usual --check behavior.
Tooling 2
Prebuilt cargo-insta binaries are now available for ARM64 Linux (aarch64-unknown-linux-gnu).
Snapshot mismatch hints for file snapshots now mention INSTA_UPDATE=always.
Fixes and other changes 9
This command no longer fails with a doctest target-selection error; like cargo test --all-targets, it no longer runs doctests.
Maps keyed by unit enum variants serialize keys using the serialized variant name, including serde renames.
Trailing semicolons are removed from serialization macro bodies to avoid compiler warnings when used in expression position.
Accepting a binary snapshot no longer fails when its data file is missing, such as when it is gitignored and not committed.
On Windows, the command no longer prints unusable \\?\-prefixed paths.
The --profile option now translates to --cargo-profile for the nextest runner instead of being forwarded as the nextest profile.
Restores Send + Sync on Redaction, reversing the semver-breaking change from 1.47.0.
Restores Send + Sync on Redactions, reversing the semver-breaking change from 1.47.0.
Restores Send + Sync on Settings, reversing the semver-breaking change from 1.47.0.