Expand description
§rust_secure_dependency_audit
A comprehensive tool for auditing Rust project dependencies, providing insights into:
- Health scoring: Assess dependency maintenance status and community activity
- License analysis: Identify license risks and compliance issues
- Footprint estimation: Evaluate dependency bloat for embedded/mobile projects
- Risk assessment: Detect stale, unmaintained, or risky dependencies
§Quick Start
use rust_secure_dependency_audit::{audit_project, AuditConfig};
use std::path::Path;
let config = AuditConfig::default();
let report = audit_project(Path::new("."), &config).await?;
for dep in report.dependencies {
println!("{}: {} (score: {})", dep.name, dep.status, dep.health_score);
}§Features
- Parallel metadata fetching for fast analysis
- Configurable health scoring heuristics
- Support for crates.io and Git-hosted dependencies
- Comprehensive license categorization (SPDX)
- CLI tool with multiple output formats (JSON, Markdown)
Structs§
- Audit
Config - Main configuration for the audit process
- Audit
Report - Complete audit report for a Rust project
- Dependency
Health - Health information for a single dependency
- Footprint
Thresholds - Footprint risk thresholds
- License
Policy - License policy configuration
- Network
Config - Network configuration for API calls
- Scoring
Weights - Weights for different components of the health score
- Staleness
Thresholds - Thresholds for determining staleness
Enums§
- Audit
Error - Main error type for audit operations
- Health
Status - Health status categories
- License
Risk - License risk categorization
Functions§
- audit_
project - Audit a Rust project and generate a health report
Type Aliases§
- Result
- Result type alias for audit operations