scripts: update: also update rust-toolchain

This commit is contained in:
nym21
2025-12-21 13:59:06 +01:00
parent aebca14d78
commit e1ad45f44b
4 changed files with 17 additions and 5 deletions
Generated
+2 -2
View File
@@ -2764,9 +2764,9 @@ dependencies = [
[[package]] [[package]]
name = "itoa" name = "itoa"
version = "1.0.15" version = "1.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" checksum = "7ee5b5339afb4c41626dde77b7a611bd4f2c202b897852b4bcf5d03eddc61010"
[[package]] [[package]]
name = "jiff" name = "jiff"
+1 -1
View File
@@ -13,7 +13,7 @@ bitcoin = { workspace = true }
brk_error = { workspace = true } brk_error = { workspace = true }
byteview = { workspace = true } byteview = { workspace = true }
derive_deref = { workspace = true } derive_deref = { workspace = true }
itoa = "1.0.15" itoa = "1.0.16"
jiff = { workspace = true } jiff = { workspace = true }
num_enum = "0.7.5" num_enum = "0.7.5"
rapidhash = "4.2.0" rapidhash = "4.2.0"
+2 -1
View File
@@ -1 +1,2 @@
"1.92" [toolchain]
channel = "1.92.0"
+12 -1
View File
@@ -1,7 +1,18 @@
#!/usr/bin/env bash #!/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 cargo clean
rustup update
cargo upgrade --incompatible cargo upgrade --incompatible
cargo update cargo update
cargo build --package brk cargo build --package brk