6 releases (stable)
Uses new Rust 2024
| 1.1.0 | Feb 16, 2026 |
|---|---|
| 1.0.2 | Feb 16, 2026 |
| 1.0.0 | Nov 28, 2025 |
| 0.2.0 | Nov 27, 2025 |
| 0.1.0 | Nov 27, 2025 |
#2844 in Command line utilities
2,956 downloads per month
29KB
503 lines
cargo-ensure-no-default-features
Eliminate superfluous features in a Rust project.
This tool checks that dependencies in Cargo.toml have default-features = false.
This can improve build times by avoiding unnecessary features being enabled by default.
If both [workspace.dependencies] and [dependencies] are present in the same
manifest, both sections are checked.
Install with:
cargo install cargo-ensure-no-default-features
And use with:
cargo ensure-no-default-features
The --manifest-path option lets you specify an explicit Cargo.toml file to check. Without this
option, it defaults to the Cargo.toml in the current directory.
The --exceptions (-e) option lets you specify a comma-separated list of dependencies to exclude from
the default-features check. This is useful for dependencies that you explicitly want to have
default features enabled.
Dependencies
~2.6–5.5MB
~110K SLoC