mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-08 06:01:57 -07:00
scripts: update: also update rust-toolchain
This commit is contained in:
Generated
+2
-2
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
+2
-1
@@ -1 +1,2 @@
|
||||
"1.92"
|
||||
[toolchain]
|
||||
channel = "1.92.0"
|
||||
|
||||
+12
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user