[dev-dependencies] referencing [dependencies] causes warnings #7024
Labels
A-dev-dependencies
Area: [dev-dependencies]
C-bug
Category: bug
S-needs-rfc
Status: Needs an RFC to make progress.
Hello Rust developers,
My Problem
In
Cargo.toml
, in order to use same version of a dependency for both[dependencies]
and[dev-dependencies]
, I use a reference:It compiles, but with a warning: dependency (some) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions.
Possible Solution(s)
Both section can declare their own version strings, and the warning will be gone. However, I'm using references to reduces mistakes, maintenance cost... Yes it is just a small version string, but I wish to be able to declare it in one single place.
Beside, references are legal: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html -- May I ask if you could make my problem above a legal declaration?
Notes
Output of
cargo version
:cargo 1.35.0 (6f3e9c367 2019-04-04)
Thank you,
The text was updated successfully, but these errors were encountered: