百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

cargo-geiger

> 编程语言
开源

检测 Rust 容器中未安全使用 Rust 及其依赖项。

1.6K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

检测 Rust 容器中未安全使用 Rust 及其依赖项。

cargo-geiger ☢️

A tool that lists statistics related to the usage of unsafe Rust code in a Rust crate and all its dependencies.

This cargo plugin was originally based on the code from two other projects:

  • https://github.com/icefoxen/cargo-osha and
  • https://github.com/sfackler/cargo-tree

Installation

Try to find and use a system-wide installed OpenSSL library:

cargo install --locked cargo-geiger

Or, build and statically link OpenSSL as part of the cargo-geiger executable:

cargo install --locked cargo-geiger --features vendored-openssl

Alternatively pre-built binary releases are available from GitHub releases.

Usage

  1. Navigate to the same directory as the Cargo.toml you want to analyze.
  2. cargo geiger

Intended Use

This tool is not meant to advise directly whether the code ultimately is truly insecure or not.

The purpose of cargo-geiger is to provide statistical input to auditing e.g. with:

  • cargo-crev
  • safety-dance

The use of unsafe is nuanced and necessary in some cases and any motivation to use it is outside the scope of cargo-geiger.

It is important that any reporting is handled with care:

  • Reddit: The Stigma around Unsafe
  • YouTube: Rust NYC: Jon Gjengset - Demystifying unsafe code
  • Rust-lang: WG Unsafe Code Guidelines

Output example

Known issues

  • See the issue tracker.

Libraries

Cargo Geiger exposes three libraries:

  • cargo-geiger - Unversioned and highly unstable library exposing the internals of the cargo-geiger binary. As such, any function contained within this library may be subject to change.
  • cargo-geiger-serde - A library containing the serializable report types
  • geiger - A library containing a few decoupled cargo components used by cargo-geiger

Changelog

See the changelog.

Why the name?

https://en.wikipedia.org/wiki/Geiger_counter

Unsafe code, like ionizing radiation, is unavoidable in some situations and should be safely contained!

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •<https://github.com/icefoxen/cargo-osha> and
  • •<https://github.com/sfackler/cargo-tree>
  • •cargo-crev
  • •safety-dance
  • •Reddit: The Stigma around Unsafe
  • •YouTube: Rust NYC: Jon Gjengset - Demystifying unsafe code
  • •Rust-lang: WG Unsafe Code Guidelines
  • •See the issue tracker.
  • •cargo-geiger-serde - A library containing the serializable report types
  • •geiger - A library containing a few decoupled [cargo] components used by [cargo-geiger]

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言