RS.CLIPPY.WILDCARD_DEPENDENCIES
Wildcard dependencies being used
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: wildcard_dependencies. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for wildcard dependencies in the Cargo.toml.
Why is this bad?
As the edition guide says, it is highly unlikely that you work with any possible version of your dependency, and wildcard dependencies would cause unnecessary breakage in the ecosystem.
Example
[dependencies]
regex = "*"
Use instead:
[dependencies]
some_crate_1 = "~1.2.3"
some_crate_2 = "=1.2.3"