RS.CLIPPY.NEGATIVE_FEATURE_NAMES

Usage of a negative 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: negative_feature_names. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for negative feature names with prefix no- or not-

Why is this bad?

Features are supposed to be additive, and negatively-named features violate it.

Example

[features]
default = []
no-abc = []
not-def = []

Use instead:

[features]
default = ["abc", "def"]
abc = []
def = []