macOS
brew install cargo-instalocal Homebrew formula metadata
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für cargo-insta in AI-Agent-Workflows.
Installation
brew install cargo-instalocal Homebrew formula metadata
sudo apk add cargo-instaAlpine Linux edge package indexes · cargo-insta · Quelle: dl-cdn.alpinelinux.org
sudo dnf install cargo-instaFedora Rawhide package metadata · cargo-insta · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#cargo-instanixpkgs package indexes · pkgs/by-name/ca/cargo-insta/package.nix · Quelle: api.github.com
sudo pacman -S cargo-instaArch Linux sync databases · cargo-insta · Quelle: geo.mirror.pkgbuild.com
Überblick
Snapshot testing CLI for Rust
Verlauf
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.
Sicherheitslage
Für cargo-insta wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
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
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
cargo-insta | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/mitsuhiko/insta
Installationsmetadaten
| Paketschlüssel | brew:cargo-insta |
|---|---|
| Version | 1.48.0 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/cargo-insta |
| Homepage | https://insta.rs |
| Repository | https://github.com/mitsuhiko/insta |
| Upstream-Dokumentation | https://insta.rs/docs |
| Lizenz | Apache-2.0 |
| Quellarchiv | https://github.com/mitsuhiko/insta/archive/refs/tags/1.48.0.tar.gz |
| Zuletzt aktualisiert | 2026-06-11T15:29:22Z |
| Pulse | updated |
| Build-Abhängigkeiten | rust |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| 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-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
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-instaQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.