cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Lint on version requirements without a fully specified minimum bound

Open epage opened this issue 7 months ago • 0 comments

What it does

Warns if a version req is 1.3 or 1 rather than 1.3.5

Advantage

This can help with more correct minimum bounds because patch packages can depend on changes in patch releases.

Drawbacks

A false sense of confidence that a minimum bound is correct

Example

serde = "1"

Could be written as:

serde = "1.0.219"

epage avatar May 22 '25 15:05 epage