Skip to content

Commit 46d59b7

Browse files
committed
Add tools and update lock files
Copy over the `update-lock-files.sh` script from `bitcoin` and add a `just` command. (Note the update lock files script should really be in `rust-bitcoin-maintainer-tools`.) Update the `bitcoin_hashes` version manually to the latest version.
1 parent d8d03a8 commit 46d59b7

File tree

4 files changed

+25
-32
lines changed

4 files changed

+25
-32
lines changed

Cargo-minimal.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ dependencies = [
316316

317317
[[package]]
318318
name = "miniscript"
319-
version = "12.0.0"
319+
version = "12.1.0"
320320
dependencies = [
321321
"bech32",
322322
"bitcoin",

Cargo-recent.lock

+9-31
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ version = "0.1.0"
2929
source = "registry+https://github.com/rust-lang/crates.io-index"
3030
checksum = "2c8d66485a3a2ea485c1913c4572ce0256067a5377ac8c75c4960e1cda98605f"
3131
dependencies = [
32-
"bitcoin-internals 0.3.0",
33-
"bitcoin_hashes 0.14.0",
32+
"bitcoin-internals",
33+
"bitcoin_hashes",
3434
]
3535

3636
[[package]]
@@ -60,22 +60,16 @@ dependencies = [
6060
"base58ck",
6161
"base64 0.21.7",
6262
"bech32",
63-
"bitcoin-internals 0.3.0",
63+
"bitcoin-internals",
6464
"bitcoin-io",
6565
"bitcoin-units",
66-
"bitcoin_hashes 0.14.0",
67-
"hex-conservative 0.2.1",
66+
"bitcoin_hashes",
67+
"hex-conservative",
6868
"hex_lit",
6969
"secp256k1",
7070
"serde",
7171
]
7272

73-
[[package]]
74-
name = "bitcoin-internals"
75-
version = "0.2.0"
76-
source = "registry+https://github.com/rust-lang/crates.io-index"
77-
checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb"
78-
7973
[[package]]
8074
name = "bitcoin-internals"
8175
version = "0.3.0"
@@ -97,28 +91,18 @@ version = "0.1.0"
9791
source = "registry+https://github.com/rust-lang/crates.io-index"
9892
checksum = "8d437fd727271c866d6fd5e71eb2c886437d4c97f80d89246be3189b1da4e58b"
9993
dependencies = [
100-
"bitcoin-internals 0.3.0",
94+
"bitcoin-internals",
10195
"serde",
10296
]
10397

104-
[[package]]
105-
name = "bitcoin_hashes"
106-
version = "0.13.0"
107-
source = "registry+https://github.com/rust-lang/crates.io-index"
108-
checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b"
109-
dependencies = [
110-
"bitcoin-internals 0.2.0",
111-
"hex-conservative 0.1.1",
112-
]
113-
11498
[[package]]
11599
name = "bitcoin_hashes"
116100
version = "0.14.0"
117101
source = "registry+https://github.com/rust-lang/crates.io-index"
118102
checksum = "bb18c03d0db0247e147a21a6faafd5a7eb851c743db062de72018b6b7e8e4d16"
119103
dependencies = [
120104
"bitcoin-io",
121-
"hex-conservative 0.2.1",
105+
"hex-conservative",
122106
"serde",
123107
]
124108

@@ -222,12 +206,6 @@ dependencies = [
222206
"wasi",
223207
]
224208

225-
[[package]]
226-
name = "hex-conservative"
227-
version = "0.1.1"
228-
source = "registry+https://github.com/rust-lang/crates.io-index"
229-
checksum = "30ed443af458ccb6d81c1e7e661545f94d3176752fb1df2f543b902a1e0f51e2"
230-
231209
[[package]]
232210
name = "hex-conservative"
233211
version = "0.2.1"
@@ -316,7 +294,7 @@ dependencies = [
316294

317295
[[package]]
318296
name = "miniscript"
319-
version = "12.0.0"
297+
version = "12.1.0"
320298
dependencies = [
321299
"bech32",
322300
"bitcoin",
@@ -452,7 +430,7 @@ version = "0.29.0"
452430
source = "registry+https://github.com/rust-lang/crates.io-index"
453431
checksum = "0e0cc0f1cf93f4969faf3ea1c7d8a9faed25918d96affa959720823dfe86d4f3"
454432
dependencies = [
455-
"bitcoin_hashes 0.13.0",
433+
"bitcoin_hashes",
456434
"rand",
457435
"secp256k1-sys",
458436
"serde",

contrib/update-lock-files.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Update the minimal/recent lock file
4+
5+
set -euo pipefail
6+
7+
for file in Cargo-minimal.lock Cargo-recent.lock; do
8+
cp --force "$file" Cargo.lock
9+
cargo check
10+
cp --force Cargo.lock "$file"
11+
done

justfile

+4
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ sane: fmt-check lint
3737

3838
# doctests don't get run from workspace root with `cargo test`.
3939
cargo test --quiet --doc || exit 1
40+
41+
# Update the recent and minimal lock files.
42+
update-lock-files:
43+
contrib/update-lock-files.sh

0 commit comments

Comments
 (0)