#automation #ci #testing #testing-automation

app cargo-ensure-no-default-features

Eliminate superfluous features in a Rust project

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

Download history 113/week @ 2025-11-25 79/week @ 2025-12-02 242/week @ 2025-12-09 299/week @ 2025-12-16 22/week @ 2025-12-23 1486/week @ 2025-12-30 729/week @ 2026-01-06 237/week @ 2026-01-13 239/week @ 2026-01-20 81/week @ 2026-01-27 240/week @ 2026-02-03 846/week @ 2026-02-10 401/week @ 2026-02-17 1466/week @ 2026-02-24

2,956 downloads per month

MIT license

29KB
503 lines

cargo-ensure-no-default-features

crate.io CI Coverage License

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