mirror of
https://github.com/FuelLabs/sway.git
synced 2025-08-04 18:58:20 +00:00

## Description Adds a bash script which iterates over all fuel owned/maintained crates we depend on and only runs cargo update for them. This is especially useful for incorporating minor bumps which happens much more often. Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
31 lines
830 B
Bash
Executable file
31 lines
830 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Run this script to only bump fuel maintained dependencies.
|
|
#
|
|
# We currently pin dependencies using "X.Y" in the root Cargo.toml file.
|
|
# Since `cargo build` does not check for minor version bumps at each invocation
|
|
# it is hard to move between new versions, especially for minor bumps which
|
|
# happens much often. Use this script to keep every fuel owned dependency up to
|
|
# date.
|
|
|
|
# Define the list of fuel maintained crates
|
|
crates=(
|
|
"fuel-abi-types"
|
|
"fuel-core-client"
|
|
"fuel-core-types"
|
|
"fuels"
|
|
"fuels-core"
|
|
"fuels-accounts"
|
|
"fuel-asm"
|
|
"fuel-crypto"
|
|
"fuel-types"
|
|
"fuel-tx"
|
|
"fuel-vm"
|
|
"forc-wallet"
|
|
)
|
|
|
|
# Run `cargo update -p <crate_name>` for each fuel owned crate.
|
|
for crate in "${crates[@]}"; do
|
|
echo "Updating package: $crate"
|
|
cargo update -p "$crate"
|
|
done
|