File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
docs/devbook/upgrade-repository-dependencies Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# get command line arguments to pass them to `cargo upgrade` command
4
4
# 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 `
6
6
CARGO_UPGRADE_OPTIONS=${*:- " --incompatible" }
7
7
8
8
# Need to install `cargo-edit` to execute `cargo upgrade` and `cargo set-version` commands
9
9
10
+ # Update Rust dependencies
11
+ cargo update
12
+ git commit -am " chore: update Rust dependencies"
13
+
10
14
# Upgrade Rust outdated dependencies
11
15
cargo upgrade " ${CARGO_UPGRADE_OPTIONS} " --verbose
12
- cargo update
13
16
# Let the CI run the tests at the end of the script
14
17
# cargo test --all-features
15
- git commit -am " chore: update Rust dependencies"
18
+ git commit -am " chore: upgrade Rust dependencies"
16
19
17
20
# Bump Rust crates versions
18
21
cargo set-version --bump patch
You can’t perform that action at this time.
0 commit comments