Skip to main content

Crate cargo_dep_budget

Crate cargo_dep_budget 

Source

Structs§

BudgetCheck
Result of checking a single budget category
BudgetConfig
Budget configuration with defaults
BudgetReport
Overall budget report
CargoMetadata
Structures for cargo metadata JSON parsing
DepCounts
Dependency counts parsed from a project
HeavyDep
A dependency and how many transitive deps it pulls in
Resolve
ResolveDep
ResolveNode

Functions§

check_budget
Check all budget categories and produce a report
count_deps_from_cargo_toml
Count dependencies from Cargo.toml content
count_packages_from_lockfile
Count total packages from Cargo.lock content Cargo.lock v3/v4 uses [[package]] entries with name, version, source fields
find_heaviest_deps
Count transitive dependencies for each direct dependency of the root package using cargo metadata resolve graph
merge_config
Merge CLI overrides into a config (CLI values take precedence)
parse_config_from_cargo_toml
Parse budget config from Cargo.toml content string
read_config_from_cargo_toml
Read budget config from Cargo.toml [package.metadata.dep-budget]