diff --git a/Cargo.lock b/Cargo.lock index 0e69f4638..db77bb697 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2764,9 +2764,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +checksum = "7ee5b5339afb4c41626dde77b7a611bd4f2c202b897852b4bcf5d03eddc61010" [[package]] name = "jiff" diff --git a/crates/brk_types/Cargo.toml b/crates/brk_types/Cargo.toml index f4fef6e81..6610b9b3a 100644 --- a/crates/brk_types/Cargo.toml +++ b/crates/brk_types/Cargo.toml @@ -13,7 +13,7 @@ bitcoin = { workspace = true } brk_error = { workspace = true } byteview = { workspace = true } derive_deref = { workspace = true } -itoa = "1.0.15" +itoa = "1.0.16" jiff = { workspace = true } num_enum = "0.7.5" rapidhash = "4.2.0" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 682fcc0cb..f19782d3c 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1 +1,2 @@ -"1.92" +[toolchain] +channel = "1.92.0" diff --git a/scripts/update.sh b/scripts/update.sh index 2fbdb2286..58ae7e89b 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -1,7 +1,18 @@ #!/usr/bin/env bash +set -e + +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +TOOLCHAIN_FILE="$SCRIPT_DIR/../rust-toolchain.toml" + +rustup update + +# Update rust-toolchain.toml with current stable version +RUST_VERSION=$(rustup run stable rustc --version | awk '{print $2}') +echo "[toolchain]" > "$TOOLCHAIN_FILE" +echo "channel = \"$RUST_VERSION\"" >> "$TOOLCHAIN_FILE" +echo "Updated rust-toolchain.toml to $RUST_VERSION" cargo clean -rustup update cargo upgrade --incompatible cargo update cargo build --package brk