All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Security
Security
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

cargo-geiger: A Rust Tool for Detecting Unsafe Code Usage in Crates and Dependencies

By

tosh

17d ago· 2 min readenCode

Summary

cargo-geiger is a Rust tool (cargo plugin) that detects and lists statistics about the usage of unsafe Rust code in a Rust crate and all its dependencies. It helps developers assess how much unsafe code is used in their Rust projects and their dependency trees. The tool can be installed via cargo, optionally using a system-wide OpenSSL library or statically linking it, and is run with the command 'cargo geiger' from the directory containing Cargo.toml. The project is based on code from two other projects and is available on GitHub under the geiger-rs organization.

Source

Hacker Newscargo-geiger: A Rust Tool for Detecting Unsafe Code Usage in Crates and Dependenciesgithub.com

Key quotes

· 3 pulled
A tool that lists statistics related to the usage of unsafe Rust code in a Rust crate and all its dependencies.
This tool is not meant to advise directly whether the code ultimately is
Navigate to the same directory as the Cargo.toml you want to analyze.
Snippet from the RSS feed
Detects usage of unsafe Rust in a Rust crate and its dependencies. - geiger-rs/cargo-geiger

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.