]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/wildcard_dependencies.txt
Auto merge of #104673 - matthiaskrgr:rollup-85f65ov, r=matthiaskrgr
[rust.git] / src / tools / clippy / src / docs / wildcard_dependencies.txt
1 ### What it does
2 Checks for wildcard dependencies in the `Cargo.toml`.
3
4 ### Why is this bad?
5 [As the edition guide says](https://rust-lang-nursery.github.io/edition-guide/rust-2018/cargo-and-crates-io/crates-io-disallows-wildcard-dependencies.html),
6 it is highly unlikely that you work with any possible version of your dependency,
7 and wildcard dependencies would cause unnecessary breakage in the ecosystem.
8
9 ### Example
10 ```
11 [dependencies]
12 regex = "*"
13 ```