Ship confident Rust
code — not panics.

The essential Rust CLI tool for catching mistakes early — unwraps, panics, deep nesting, and more.

$ cargo-guard check

Analyzing package…

Health Score: 62/100 (Needs Improvement)

Found: 4 issues

src/main.rs:32 → .unwrap() found. Handle
  potential errors gracefully.

Downloads
0
Stars
0
Contributors
1
Issues Caught
20
🔍

Catch Panic Risks Early

Detect .unwrap(), .expect(), todo!(), and other panic-prone patterns before they cause outages—especially helpful for Rust beginners.


🛠️

Prevent Real-World Failures

Verify unwraps to resolve issues and improve the robustness of your Rust code.


🧹

Improve Code Maintainability

Verify unwraps to resolve issues and improve the robustness of your Rust code.


💡

--explain mode

Every warning includes: Why it matters (with real examples) How to fix it (e.g., use ?, match, or unwrap_or()) Links to official docs or incident reports


📚

Interactive --explain Mode

Run cargo guard --explain unwrap to get a deep-dive guide—just like rustc --explain, but with practical, production-focused advice.


@src/main.rs
func manualPlus.here(code van ts) {
    return detectErrors;
}

func maeS main() {
    if nanKload == warn() {
        scorX.safeDoc == eotir;
        let precolabs = to(most[(tctn, tnct, erors)] == "");
    }

    
        if (lassers.brape == null) {
            return unwraps(tradn, erero);
        }
    
}

Get Started

Installation


# Install using Cargo
$ cargo install oxidescan

# OR clone the repo

$ git clone https://github.com/user/oxidescan
$ cd oxidescan
$ cargo install --path .

	

Let's help you install something which can save you time!

Use Cases

Scan your project


$ cargo oxidescan        # scans ./src
$ cargo oxidescan path/to/code
    
    

Explain a rule


$ cargo oxidescan --explain unwrap
$ cargo oxidescan --explain clone

Help Us Improve

Found a bug? Have feature ideas? Want to help shape the future of oxidescan? Your feedback makes the tool better for the entire Rust community.

  • Report bugs or edge cases
  • Suggest new detection features
  • Contribute improvements or docs
  • Share performance results or benchmarks
Open a GitHub Issue Join Discussions
We respond quickly — your feedback matters 🚀