https://github.com/geeknoid/cargo-ensure-no-default-features
Cargo tool to ensure all workspace dependencies use default-features = false
https://github.com/geeknoid/cargo-ensure-no-default-features
cargo-plugin cargo-subcommand default-features
Last synced: 5 months ago
JSON representation
Cargo tool to ensure all workspace dependencies use default-features = false
- Host: GitHub
- URL: https://github.com/geeknoid/cargo-ensure-no-default-features
- Owner: geeknoid
- License: mit
- Created: 2025-11-27T22:06:06.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2026-02-16T06:55:09.000Z (5 months ago)
- Last Synced: 2026-02-16T08:55:46.432Z (5 months ago)
- Topics: cargo-plugin, cargo-subcommand, default-features
- Language: Rust
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cargo-ensure-no-default-features
[](https://crates.io/crates/cargo-ensure-no-default-features)
[](https://github.com/geeknoid/cargo-ensure-no-default-features/actions)
[](https://codecov.io/gh/geeknoid/cargo-ensure-no-default-features)
[]()
[](./LICENSE)
Eliminate superfluous features in a Rust workspace.
This tool checks that all workspace dependencies in Cargo.toml have
`default-features = false`. This is a best practice in repos that publish multiple independent
crates, to ensure that each individual crate has the minimal set of features they need.
This can improve build times for any consumers of these crates by avoiding
unnecessary features being enabled by default.
Install with:
```bash
cargo install cargo-ensure-no-default-features
```
And use with:
```bash
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.