diff options
Diffstat (limited to 'docs/crate_universe.md')
-rw-r--r-- | docs/crate_universe.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/crate_universe.md b/docs/crate_universe.md index 02323db5..ce5c8470 100644 --- a/docs/crate_universe.md +++ b/docs/crate_universe.md @@ -292,8 +292,8 @@ Given the following workspace structure: ```text [workspace]/ - WORKSPACE - BUILD + WORKSPACE.bazel + BUILD.bazel Cargo.toml Cargo.Bazel.lock src/ @@ -350,7 +350,8 @@ that is called behind the scenes to update dependencies. | Any of [`true`, `1`, `yes`, `on`, `workspace`] | `cargo update --workspace` | | Any of [`full`, `eager`, `all`] | `cargo update` | | `package_name` | `cargo upgrade --package package_name` | -| `package_name@1.2.3` | `cargo upgrade --package package_name --precise 1.2.3` | +| `package_name@1.2.3` | `cargo upgrade --package package_name@1.2.3` | +| `package_name@1.2.3=4.5.6` | `cargo upgrade --package package_name@1.2.3 --precise=4.5.6` | If the `crates_repository` is used multiple times in the same Bazel workspace (e.g. for multiple independent Rust workspaces), it may additionally be useful to use the `CARGO_BAZEL_REPIN_ONLY` environment variable, which |