| 8e29b1b6 | 23-Aug-2022 |
Hugo Tunius <[email protected]> |
Specify both path and version in crate deps
Cargo allows specifying both a `path` and `version` for dependencies, doing this makes publishing easier.
> It is possible to specify both a registry ver
Specify both path and version in crate deps
Cargo allows specifying both a `path` and `version` for dependencies, doing this makes publishing easier.
> It is possible to specify both a registry version and a git or path > location. The git or path dependency will be used locally (in which > case the version is checked against the local copy), and when > published to a registry like crates.io, it will use the registry > version. Other combinations are not allowed.
_From [The Cargo Book][0]_
[0]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#multiple-locations
show more ...
|