macOS
brew install cargo-geigerlocal Homebrew formula metadata
安装
brew install cargo-geigerlocal Homebrew formula metadata
sudo apk add cargo-geigerAlpine Linux edge package indexes · cargo-geiger · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-geigernixpkgs package indexes · pkgs/by-name/ca/cargo-geiger/package.nix · 来源: api.github.com
sudo pacman -S cargo-geigerArch Linux sync databases · cargo-geiger · 来源: geo.mirror.pkgbuild.com
概览
Detects usage of unsafe Rust in a Rust crate and its dependencies
历史
cargo-geiger is a Cargo subcommand that reports unsafe Rust usage in a crate and its dependency graph. Its name references a Geiger counter: unsafe code is treated as something worth detecting, measuring, and containing.
The project is intentionally framed as audit input, not an automatic security verdict. Its README warns that unsafe usage is nuanced and that reports should be handled carefully.
The cargo-geiger repository and crate were created in June 2018. The README says the tool was originally based on code from cargo-osha and cargo-tree, combining unsafe-code scanning with dependency-tree traversal.
Over time the project split reusable pieces into library crates, including `geiger` and `cargo-geiger-serde`. The changelog records substantial dependency-graph work in 0.11.0 using cargo_metadata and JSON/report serialization improvements.
cargo-geiger found a niche in Rust security review and supply-chain auditing, especially among developers interested in minimizing or documenting unsafe code in dependencies.
The README points users toward cargo-crev and safety-dance as audit contexts where cargo-geiger statistics can help. That positioning kept it from becoming a simplistic 'unsafe equals bad' badge while still making unsafe usage visible.
Usage is intentionally simple: run `cargo geiger` from the directory containing the `Cargo.toml` to analyze. The tool reports unsafe-code statistics for the crate and dependencies.
The README documents installation with `cargo install --locked cargo-geiger`, an optional vendored OpenSSL build, and prebuilt GitHub releases.
cargo-geiger is package-nerd significant because it made unsafe-code exposure a transitive package property that could be inspected like licenses, advisories, or dependency trees.
It also shows Rust's audit culture maturing: package metadata alone is not enough, so tools emerged to summarize source-level risk signals across the dependency graph.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cargo-geiger | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/geiger-rs/cargo-geiger
安装元数据
| 软件包键 | brew:cargo-geiger |
|---|---|
| 版本 | 0.13.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cargo-geiger |
| 主页 | https://github.com/geiger-rs/cargo-geiger |
| 仓库 | https://github.com/geiger-rs/cargo-geiger |
| 上游文档 | https://github.com/geiger-rs/cargo-geiger#readme |
| 许可证 | Apache-2.0 OR MIT |
| 源码归档 | https://github.com/geiger-rs/cargo-geiger/archive/refs/tags/cargo-geiger-0.13.0.tar.gz |
| 最后更新 | 2026-06-22T14:02:57-07:00 |
| Pulse | updated |
| 依赖 | openssl@3 |
| 构建依赖 | pkgconf, 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-geiger |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cargo-geiger
nix profile install nixpkgs#cargo-geigercargo-geiger 0.13.0-r0
Detects usage of unsafe Rust in a Rust crate and its dependencies.
https://github.com/geiger-rs/cargo-geiger
sudo apk add cargo-geigercargo-geiger-doc 0.13.0-r0
Detects usage of unsafe Rust in a Rust crate and its dependencies. (documentation)
https://github.com/geiger-rs/cargo-geiger
sudo apk add cargo-geiger-doccargo-geiger 0.13.0-1
Detects usage of unsafe Rust in a Rust crate and its dependencies
https://github.com/rust-secure-code/cargo-geiger
sudo pacman -S cargo-geiger来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.