RS.CLIPPY.REDUNDANT_FEATURE_NAMES
Usage of a redundant feature name
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: redundant_feature_names. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for feature names with prefix use-, with- or suffix -support
Why is this bad?
These prefixes and suffixes have no significant meaning.
Example
[features]
default = ["use-abc", "with-def", "ghi-support"]
use-abc = [] // redundant
with-def = [] // redundant
ghi-support = [] // redundant
Use instead:
[features]
default = ["abc", "def", "ghi"]
abc = []
def = []
ghi = []