Cargo Package Warning

Why when I have a dependency in my Cargo.toml like this:

varlink = { git = "https://github.com/varlink/rust.git", rev = "04b2a5a" }

do I get a warning like this when I run cargo package:

warning: dependency (varlink) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions

I have specified a git repo to use, so I don't know what the warning is meaning.

Edit: Oh, can crates on crates.io only use crates.io dependencies?

Correct

1 Like