Expand description
Static dependency health checks for Rust projects.
cargo-shed reads a project’s manifest, lockfile, and Rust sources without
compiling the project or running build scripts. The main entry point is
analyze. Safe edits are available through apply_fixes.
use cargo_shed::{Config, OutputFormat, analyze};
let report = analyze(Config {
manifest_path: Some("Cargo.toml".into()),
format: OutputFormat::Json,
..Config::default()
})?;
println!("{}", report.to_json()?);Re-exports§
pub use error::ShedError;pub use fix::Edit;pub use fix::Fix;pub use fix::FixReport;pub use fix::FixSafety;pub use fix::apply_fixes;pub use issue::Evidence;pub use issue::Issue;pub use issue::Severity;pub use issue::Suggestion;pub use lockfile::LockDependency;pub use lockfile::LockPackage;pub use lockfile::Lockfile;pub use manifest::Dependency;pub use manifest::DependencySection;pub use manifest::Manifest;pub use project::Project;pub use project::ProjectKind;pub use report::Report;pub use rules::Rule;pub use scan::SourceFile;pub use scan::SourceIndex;
Modules§
Structs§
- Config
- Runtime configuration for project analysis and safe fix application.
Enums§
- Output
Format - Output encoding for reports produced by the CLI and library helpers.