| Crates.io | cargo-feature-dep-checker |
| lib.rs | cargo-feature-dep-checker |
| version | 0.1.3 |
| created_at | 2025-12-10 17:57:25.693318+00 |
| updated_at | 2025-12-13 20:32:23.688365+00 |
| description | Validates feature dependencies in Cargo.toml files |
| homepage | |
| repository | https://github.com/bensantora/cargo-feature-dep-checker |
| max_upload_size | |
| id | 1978533 |
| size | 16,266 |
This crate is no longer actively maintained. The repository has been archived and no additional development or support will occur.
I consent to the transfer of this crate to the first person who asks help@crates.io for it.
Thank you for any past interest and usage.
A Cargo subcommand that validates feature dependencies in Cargo.toml files.
Checks that:
cargo install --path .
Or from crates.io (once published):
cargo install cargo-feature-dep-checker
Run from a Rust project directory:
cargo feature-dep-checker
Or specify a path to a Cargo.toml:
cargo feature-dep-checker /path/to/Cargo.toml
Given a Cargo.toml with broken feature dependencies:
[features]
default = ["std"]
std = []
nightly = ["special"] # Error: "special" feature doesn't exist
broken = ["missing-dep"] # Error: "missing-dep" not an optional dependency
Running cargo feature-dep-checker will report:
Found 2 error(s):
Feature 'nightly' depends on 'special' which is not defined as a feature or optional dependency
Feature 'broken' depends on 'missing-dep' which is not defined as a feature or optional dependency
0 - All feature dependencies are valid1 - Errors found or invalid Cargo.tomlRun the test suite:
cargo test
The tests verify:
dep: prefix is properly ignored