Skip to content

Commit

Permalink
Be clearer than the full versionreq format is OK
Browse files Browse the repository at this point in the history
  • Loading branch information
bjgill committed Feb 16, 2018
1 parent 5c955c7 commit 3d51789
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Remove a dependency from a Cargo.toml manifest file.
Upgrade dependencies in your `Cargo.toml` to their latest versions.

To specify a version to upgrade to, provide the dependencies in the `<crate name>@<version>` format,
e.g. `cargo upgrade docopt@~0.9.0 serde@1.0.1`.
e.g. `cargo upgrade docopt@~0.9.0 serde@>=0.9,<2.0`.

This command differs from `cargo update`, which updates the dependency versions recorded in the
local lock file (Cargo.lock).
Expand All @@ -151,9 +151,9 @@ local lock file (Cargo.lock).
```sh
# Upgrade all dependencies for the current crate
$ cargo upgrade
# Upgrade libc (to the latest version) and serde (to v1.0.0)
$ cargo upgrade libc serde@1.0.0
# Upgrade regex across all crates in the workspace
# Upgrade docopt (to ~0.9) and serde (to >=0.9,<2.0)
$ cargo upgrade docopt@~0.9 serde@>=0.9,<2.0
# Upgrade regex (to the latest version) across all crates in the workspace
$ cargo upgrade regex --all
```

Expand Down
2 changes: 1 addition & 1 deletion src/bin/upgrade/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ This command differs from `cargo update`, which updates the dependency versions
local lock file (Cargo.lock).
If `<dependency>`(s) are provided, only the specified dependencies will be upgraded. The version to
upgrade to for each can be specified with e.g. `[email protected]`.
upgrade to for each can be specified with e.g. `[email protected]` or `serde@>=0.9,<2.0`.
Dev, build, and all target dependencies will also be upgraded. Only dependencies from crates.io are
supported. Git/path dependencies will be ignored.
Expand Down

0 comments on commit 3d51789

Please sign in to comment.