Skip to content

Commit cc9ab2b

Browse files
committed
WIP: Depend on soon-to-be-release hashes v0.13.0
Demo what needs to be done to depend on the upcoming `hashes` release.
1 parent 83a2245 commit cc9ab2b

File tree

3 files changed

+32
-15
lines changed

3 files changed

+32
-15
lines changed

Cargo-minimal.lock

+13-7
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ dependencies = [
1818
]
1919

2020
[[package]]
21-
name = "bitcoin-private"
22-
version = "0.1.0"
21+
name = "bitcoin-internals"
22+
version = "0.2.0"
2323
source = "registry+https://github.com/rust-lang/crates.io-index"
24-
checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57"
24+
checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb"
2525

2626
[[package]]
2727
name = "bitcoin_hashes"
28-
version = "0.12.0"
29-
source = "registry+https://github.com/rust-lang/crates.io-index"
30-
checksum = "5d7066118b13d4b20b23645932dfb3a81ce7e29f95726c2036fa33cd7b092501"
28+
version = "0.13.0"
29+
source = "git+https://github.com/tcharding/rust-bitcoin?branch=06-20-hashes-release#53f68383b74025a0885056de1d3ae812f6913bca"
3130
dependencies = [
32-
"bitcoin-private",
31+
"bitcoin-internals",
32+
"hex-conservative",
3333
]
3434

3535
[[package]]
@@ -103,6 +103,12 @@ version = "1.2.0"
103103
source = "registry+https://github.com/rust-lang/crates.io-index"
104104
checksum = "ee6c0438de3ca4d8cac2eec62b228e2f8865cfe9ebefea720406774223fa2d2e"
105105

106+
[[package]]
107+
name = "hex-conservative"
108+
version = "0.1.1"
109+
source = "registry+https://github.com/rust-lang/crates.io-index"
110+
checksum = "30ed443af458ccb6d81c1e7e661545f94d3176752fb1df2f543b902a1e0f51e2"
111+
106112
[[package]]
107113
name = "itoa"
108114
version = "0.3.0"

Cargo-recent.lock

+13-7
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ dependencies = [
1212
]
1313

1414
[[package]]
15-
name = "bitcoin-private"
16-
version = "0.1.0"
15+
name = "bitcoin-internals"
16+
version = "0.2.0"
1717
source = "registry+https://github.com/rust-lang/crates.io-index"
18-
checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57"
18+
checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb"
1919

2020
[[package]]
2121
name = "bitcoin_hashes"
22-
version = "0.12.0"
23-
source = "registry+https://github.com/rust-lang/crates.io-index"
24-
checksum = "5d7066118b13d4b20b23645932dfb3a81ce7e29f95726c2036fa33cd7b092501"
22+
version = "0.13.0"
23+
source = "git+https://github.com/tcharding/rust-bitcoin?branch=06-20-hashes-release#53f68383b74025a0885056de1d3ae812f6913bca"
2524
dependencies = [
26-
"bitcoin-private",
25+
"bitcoin-internals",
26+
"hex-conservative",
2727
]
2828

2929
[[package]]
@@ -79,6 +79,12 @@ version = "1.8.2"
7979
source = "registry+https://github.com/rust-lang/crates.io-index"
8080
checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7"
8181

82+
[[package]]
83+
name = "hex-conservative"
84+
version = "0.1.1"
85+
source = "registry+https://github.com/rust-lang/crates.io-index"
86+
checksum = "30ed443af458ccb6d81c1e7e661545f94d3176752fb1df2f543b902a1e0f51e2"
87+
8288
[[package]]
8389
name = "js-sys"
8490
version = "0.3.61"

Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ serde = { version = "1.0.103", default-features = false, optional = true }
4040

4141
# You likely only want to enable these if you explicitly do not want to use "std", otherwise enable
4242
# the respective -std feature e.g., hashes-std
43-
hashes = { package = "bitcoin_hashes", version = "0.12", default-features = false, optional = true }
43+
hashes = { package = "bitcoin_hashes", version = "0.13", default-features = false, optional = true }
4444
rand = { version = "0.8", default-features = false, optional = true }
4545

4646
[dev-dependencies]
@@ -69,3 +69,8 @@ required-features = ["rand-std"]
6969
[workspace]
7070
members = ["secp256k1-sys"]
7171
exclude = ["no_std_test"]
72+
73+
# TODO: Remove this when hashes v.0.13.0 is released.
74+
[patch.crates-io.bitcoin_hashes]
75+
git = "https://github.com/tcharding/rust-bitcoin"
76+
branch = "06-20-hashes-release"

0 commit comments

Comments
 (0)