Skip to main content

Crate dev_deps

Crate dev_deps 

Source
Expand description

§dev-deps

Dependency health checking for Rust. Detects unused and outdated dependencies. Part of the dev-* verification suite.

Wraps cargo-udeps (unused dependencies) and cargo-outdated (out-of-date versions). Emits findings as dev_report::Report.

§What it checks

  • Unused dependencies — declared in Cargo.toml but never imported.
  • Outdated versions — a newer version exists on crates.io.
  • Major-version lag — how many major versions behind the current pin is.

§Quick example

use dev_deps::{DepCheck, DepScope};

let check = DepCheck::new("my-crate", "0.1.0").scope(DepScope::All);
let result = check.execute().unwrap();
let report = result.into_report();

§Requirements

cargo install cargo-udeps cargo-outdated
rustup toolchain install nightly      # cargo-udeps requires nightly

Structs§

DepCheck
Configuration for a dependency check.
DepProducer
Producer adapter that runs a DepCheck and converts the result into a Report.
DepResult
Result of a dependency check.
OutdatedDep
An outdated-dependency finding.
UnusedDep
An unused-dependency finding.

Enums§

DepError
Errors that can arise during a dependency check.
DepKind
Where a dependency is declared in Cargo.toml.
DepScope
Scope of a dependency check.