Skip to content

Commit 88fa43a

Browse files
committed
docs: better Rust update/upgrade sequence in devbook
1 parent 989e4f5 commit 88fa43a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/devbook/upgrade-repository-dependencies/upgrade_dependencies.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22

33
# get command line arguments to pass them to `cargo upgrade` command
44
# By default, we allow upgrading all dependencies to the latest one.
5-
# If you want to upgrade only to the compatible version, launch script with option `--compatbile`
5+
# If you want to upgrade only to the compatible version, launch script with option `--compatible`
66
CARGO_UPGRADE_OPTIONS=${*:-"--incompatible"}
77

88
# Need to install `cargo-edit` to execute `cargo upgrade` and `cargo set-version` commands
99

10+
# Update Rust dependencies
11+
cargo update
12+
git commit -am "chore: update Rust dependencies"
13+
1014
# Upgrade Rust outdated dependencies
1115
cargo upgrade "${CARGO_UPGRADE_OPTIONS}" --verbose
12-
cargo update
1316
# Let the CI run the tests at the end of the script
1417
# cargo test --all-features
15-
git commit -am "chore: update Rust dependencies"
18+
git commit -am "chore: upgrade Rust dependencies"
1619

1720
# Bump Rust crates versions
1821
cargo set-version --bump patch

0 commit comments

Comments
 (0)