macOS
brew install cargo-instalocal Homebrew formula metadata
安装
brew install cargo-instalocal Homebrew formula metadata
sudo apk add cargo-instaAlpine Linux edge package indexes · cargo-insta · 来源: dl-cdn.alpinelinux.org
sudo dnf install cargo-instaFedora Rawhide package metadata · cargo-insta · 来源: dl.fedoraproject.org
nix profile install nixpkgs#cargo-instanixpkgs package indexes · pkgs/by-name/ca/cargo-insta/package.nix · 来源: api.github.com
sudo pacman -S cargo-instaArch Linux sync databases · cargo-insta · 来源: geo.mirror.pkgbuild.com
概览
Snapshot testing CLI for Rust
历史
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.
安全态势
没有找到 cargo-insta 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cargo-insta | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/mitsuhiko/insta
安装元数据
| 软件包键 | brew:cargo-insta |
|---|---|
| 版本 | 1.48.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cargo-insta |
| 主页 | https://insta.rs |
| 仓库 | https://github.com/mitsuhiko/insta |
| 上游文档 | https://insta.rs/docs |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/mitsuhiko/insta/archive/refs/tags/1.48.0.tar.gz |
| 最后更新 | 2026-06-11T15:29:22Z |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-insta来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.