macOS
brew install cargo-instalocal Homebrew formula metadata
brew
Snapshot testing CLI for Rust. Version 1.48.0 via Homebrew; verified 2026-06-11.
install
brew install cargo-instalocal Homebrew formula metadata
sudo apk add cargo-instaAlpine Linux edge package indexes · cargo-insta · source: dl-cdn.alpinelinux.org
sudo dnf install cargo-instaFedora Rawhide package metadata · cargo-insta · source: dl.fedoraproject.org
nix profile install nixpkgs#cargo-instanixpkgs package indexes · pkgs/by-name/ca/cargo-insta/package.nix · source: api.github.com
sudo pacman -S cargo-instaArch Linux sync databases · cargo-insta · source: geo.mirror.pkgbuild.com
overview
Snapshot testing CLI for Rust
history
Cargo Insta is the command-line companion to Insta, Armin Ronacher's snapshot testing library for Rust. It helps developers review, accept, reject, and update snapshot changes from Cargo workflows.
The CLI is not required for every snapshot test, but the official docs say it is required for inline snapshots and useful for snapshot review.
The Insta repository was created in January 2019, and the cargo-insta crate was first published that same month. The project combines a Rust testing library, a Cargo subcommand, website documentation, and editor support.
The README positions snapshot tests as approval-style tests that compare complex or frequently changing values against stored reference snapshots. It also notes that inline snapshots are handled through the companion cargo-insta tool.
The changelog documents both insta and cargo-insta together, showing the CLI evolving with snapshot review, nextest integration, non-interactive review modes, diff tooling, pending snapshot handling, and CI behavior.
Insta became a familiar Rust testing tool for projects that need readable diffs for large structured outputs, CLI output, serializers, generated code, and UI-like text fixtures.
cargo-insta's adoption follows from the review workflow: once snapshots are part of tests, maintainers need a convenient way to inspect pending changes, accept intended updates, reject regressions, and run checks in CI.
The official CLI docs describe `cargo insta review`, `accept`, `reject`, `pending-snapshots`, and `test`. The common loop is to run tests, inspect generated pending snapshots, and then accept or reject changes.
Configuration is workspace-local through `insta.yaml`; the docs say cargo-insta loads this config from the workspace to influence behavior, with settings documented on the official site.
cargo-insta is package-nerd significant because it packages a whole testing workflow, not just an assertion macro. The CLI, file formats, review commands, settings, and editor extension together make snapshot testing feel native to Rust package maintenance.
It also reflects a broader trend in developer tooling: tests increasingly produce reviewable artifacts, and package-manager subcommands become the interface for accepting those artifacts into the repository.
security posture
No matching local secret-handling manifest was found for cargo-insta. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$CARGO_WORKSPACE/.config/insta.yaml$CARGO_WORKSPACE/insta.yaml$CARGO_WORKSPACE/.insta.yamlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cargo-insta | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/mitsuhiko/insta
install metadata
| Package key | brew:cargo-insta |
|---|---|
| Version | 1.48.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cargo-insta |
| Homepage | https://insta.rs |
| Repository | https://github.com/mitsuhiko/insta |
| Upstream docs | https://insta.rs/docs |
| License | Apache-2.0 |
| Source archive | https://github.com/mitsuhiko/insta/archive/refs/tags/1.48.0.tar.gz |
| Last updated | 2026-06-11T15:29:22Z |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-insta |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cargo-insta
nix profile install nixpkgs#cargo-instacargo-insta 1.44.3-r0
review tool for insta, a snapshot testing library for Rust
https://github.com/mitsuhiko/insta
sudo apk add cargo-instacargo-insta-doc 1.44.3-r0
review tool for insta, a snapshot testing library for Rust (documentation)
https://github.com/mitsuhiko/insta
sudo apk add cargo-insta-doccargo-insta 1.46.3-1.fc45
Review tool for the insta snapshot testing library for Rust
https://crates.io/crates/cargo-insta
sudo dnf install cargo-instacargo-insta 1.47.2-1
Cargo plugin for snapshot testing in Rust
https://github.com/mitsuhiko/insta
sudo pacman -S cargo-instasource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.