Skip to content

Commit 834aebf

Browse files
committed
WIP: Track rust-bitcoin master branch
As we develop `primitives` it is useful to have crates using the changes to catch mistakes as we go.
1 parent 1e40a8d commit 834aebf

29 files changed

+395
-185
lines changed

Cargo-minimal.lock

+50-26
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
2020
[[package]]
2121
name = "base58ck"
2222
version = "0.1.0"
23-
source = "registry+https://github.com/rust-lang/crates.io-index"
24-
checksum = "2c8d66485a3a2ea485c1913c4572ce0256067a5377ac8c75c4960e1cda98605f"
23+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
2524
dependencies = [
2625
"bitcoin-internals",
27-
"bitcoin_hashes",
26+
"bitcoin_hashes 0.15.0",
2827
]
2928

3029
[[package]]
3130
name = "base64"
32-
version = "0.21.7"
31+
version = "0.22.1"
3332
source = "registry+https://github.com/rust-lang/crates.io-index"
34-
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
33+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
3534

3635
[[package]]
3736
name = "bech32"
@@ -41,43 +40,57 @@ checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
4140

4241
[[package]]
4342
name = "bitcoin"
44-
version = "0.32.0"
45-
source = "registry+https://github.com/rust-lang/crates.io-index"
46-
checksum = "7170e7750a20974246f17ece04311b4205a6155f1db564c5b224af817663c3ea"
43+
version = "0.33.0-alpha"
44+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
4745
dependencies = [
4846
"base58ck",
4947
"base64",
5048
"bech32",
5149
"bitcoin-internals",
5250
"bitcoin-io",
51+
"bitcoin-primitives",
5352
"bitcoin-units",
54-
"bitcoin_hashes",
53+
"bitcoin_hashes 0.15.0",
54+
"bitcoinconsensus",
5555
"hex-conservative",
56-
"hex_lit",
5756
"secp256k1",
5857
"serde",
5958
]
6059

6160
[[package]]
6261
name = "bitcoin-internals"
63-
version = "0.3.0"
64-
source = "registry+https://github.com/rust-lang/crates.io-index"
65-
checksum = "30bdbe14aa07b06e6cfeffc529a1f099e5fbe249524f8125358604df99a4bed2"
62+
version = "0.4.0"
63+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
6664
dependencies = [
65+
"hex-conservative",
6766
"serde",
6867
]
6968

7069
[[package]]
7170
name = "bitcoin-io"
72-
version = "0.1.1"
73-
source = "registry+https://github.com/rust-lang/crates.io-index"
74-
checksum = "17e5b76b88667412087beea1882980ad843b660490bbf6cce0a6cfc999c5b989"
71+
version = "0.2.0"
72+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
73+
dependencies = [
74+
"bitcoin-internals",
75+
]
76+
77+
[[package]]
78+
name = "bitcoin-primitives"
79+
version = "0.100.0"
80+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
81+
dependencies = [
82+
"bitcoin-internals",
83+
"bitcoin-io",
84+
"bitcoin-units",
85+
"bitcoin_hashes 0.15.0",
86+
"hex-conservative",
87+
"serde",
88+
]
7589

7690
[[package]]
7791
name = "bitcoin-units"
78-
version = "0.1.0"
79-
source = "registry+https://github.com/rust-lang/crates.io-index"
80-
checksum = "8d437fd727271c866d6fd5e71eb2c886437d4c97f80d89246be3189b1da4e58b"
92+
version = "0.2.0"
93+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
8194
dependencies = [
8295
"bitcoin-internals",
8396
"serde",
@@ -88,12 +101,29 @@ name = "bitcoin_hashes"
88101
version = "0.14.0"
89102
source = "registry+https://github.com/rust-lang/crates.io-index"
90103
checksum = "bb18c03d0db0247e147a21a6faafd5a7eb851c743db062de72018b6b7e8e4d16"
104+
dependencies = [
105+
"hex-conservative",
106+
]
107+
108+
[[package]]
109+
name = "bitcoin_hashes"
110+
version = "0.15.0"
111+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
91112
dependencies = [
92113
"bitcoin-io",
93114
"hex-conservative",
94115
"serde",
95116
]
96117

118+
[[package]]
119+
name = "bitcoinconsensus"
120+
version = "0.106.0+26.0"
121+
source = "registry+https://github.com/rust-lang/crates.io-index"
122+
checksum = "e12cba9cce5043cdda968e07b9df6d05ec6b0b38aa27a9a40bb575cf3e521ae9"
123+
dependencies = [
124+
"cc",
125+
]
126+
97127
[[package]]
98128
name = "cc"
99129
version = "1.0.28"
@@ -135,12 +165,6 @@ dependencies = [
135165
"arrayvec",
136166
]
137167

138-
[[package]]
139-
name = "hex_lit"
140-
version = "0.1.1"
141-
source = "registry+https://github.com/rust-lang/crates.io-index"
142-
checksum = "3011d1213f159867b13cfd6ac92d2cd5f1345762c63be3554e84092d85a50bbd"
143-
144168
[[package]]
145169
name = "honggfuzz"
146170
version = "0.5.56"
@@ -276,7 +300,7 @@ version = "0.29.0"
276300
source = "registry+https://github.com/rust-lang/crates.io-index"
277301
checksum = "0e0cc0f1cf93f4969faf3ea1c7d8a9faed25918d96affa959720823dfe86d4f3"
278302
dependencies = [
279-
"bitcoin_hashes",
303+
"bitcoin_hashes 0.14.0",
280304
"rand",
281305
"secp256k1-sys",
282306
"serde",

Cargo-recent.lock

+50-26
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
2020
[[package]]
2121
name = "base58ck"
2222
version = "0.1.0"
23-
source = "registry+https://github.com/rust-lang/crates.io-index"
24-
checksum = "2c8d66485a3a2ea485c1913c4572ce0256067a5377ac8c75c4960e1cda98605f"
23+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
2524
dependencies = [
2625
"bitcoin-internals",
27-
"bitcoin_hashes",
26+
"bitcoin_hashes 0.15.0",
2827
]
2928

3029
[[package]]
3130
name = "base64"
32-
version = "0.21.7"
31+
version = "0.22.1"
3332
source = "registry+https://github.com/rust-lang/crates.io-index"
34-
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
33+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
3534

3635
[[package]]
3736
name = "bech32"
@@ -41,43 +40,57 @@ checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
4140

4241
[[package]]
4342
name = "bitcoin"
44-
version = "0.32.0"
45-
source = "registry+https://github.com/rust-lang/crates.io-index"
46-
checksum = "7170e7750a20974246f17ece04311b4205a6155f1db564c5b224af817663c3ea"
43+
version = "0.33.0-alpha"
44+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
4745
dependencies = [
4846
"base58ck",
4947
"base64",
5048
"bech32",
5149
"bitcoin-internals",
5250
"bitcoin-io",
51+
"bitcoin-primitives",
5352
"bitcoin-units",
54-
"bitcoin_hashes",
53+
"bitcoin_hashes 0.15.0",
54+
"bitcoinconsensus",
5555
"hex-conservative",
56-
"hex_lit",
5756
"secp256k1",
5857
"serde",
5958
]
6059

6160
[[package]]
6261
name = "bitcoin-internals"
63-
version = "0.3.0"
64-
source = "registry+https://github.com/rust-lang/crates.io-index"
65-
checksum = "30bdbe14aa07b06e6cfeffc529a1f099e5fbe249524f8125358604df99a4bed2"
62+
version = "0.4.0"
63+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
6664
dependencies = [
65+
"hex-conservative",
6766
"serde",
6867
]
6968

7069
[[package]]
7170
name = "bitcoin-io"
72-
version = "0.1.1"
73-
source = "registry+https://github.com/rust-lang/crates.io-index"
74-
checksum = "17e5b76b88667412087beea1882980ad843b660490bbf6cce0a6cfc999c5b989"
71+
version = "0.2.0"
72+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
73+
dependencies = [
74+
"bitcoin-internals",
75+
]
76+
77+
[[package]]
78+
name = "bitcoin-primitives"
79+
version = "0.100.0"
80+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
81+
dependencies = [
82+
"bitcoin-internals",
83+
"bitcoin-io",
84+
"bitcoin-units",
85+
"bitcoin_hashes 0.15.0",
86+
"hex-conservative",
87+
"serde",
88+
]
7589

7690
[[package]]
7791
name = "bitcoin-units"
78-
version = "0.1.0"
79-
source = "registry+https://github.com/rust-lang/crates.io-index"
80-
checksum = "8d437fd727271c866d6fd5e71eb2c886437d4c97f80d89246be3189b1da4e58b"
92+
version = "0.2.0"
93+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
8194
dependencies = [
8295
"bitcoin-internals",
8396
"serde",
@@ -88,12 +101,29 @@ name = "bitcoin_hashes"
88101
version = "0.14.0"
89102
source = "registry+https://github.com/rust-lang/crates.io-index"
90103
checksum = "bb18c03d0db0247e147a21a6faafd5a7eb851c743db062de72018b6b7e8e4d16"
104+
dependencies = [
105+
"hex-conservative",
106+
]
107+
108+
[[package]]
109+
name = "bitcoin_hashes"
110+
version = "0.15.0"
111+
source = "git+https://github.com/rust-bitcoin/rust-bitcoin?branch=master#2edfcedde13fe226d6c01d768108957592dcfd67"
91112
dependencies = [
92113
"bitcoin-io",
93114
"hex-conservative",
94115
"serde",
95116
]
96117

118+
[[package]]
119+
name = "bitcoinconsensus"
120+
version = "0.106.0+26.0"
121+
source = "registry+https://github.com/rust-lang/crates.io-index"
122+
checksum = "e12cba9cce5043cdda968e07b9df6d05ec6b0b38aa27a9a40bb575cf3e521ae9"
123+
dependencies = [
124+
"cc",
125+
]
126+
97127
[[package]]
98128
name = "cc"
99129
version = "1.0.28"
@@ -135,12 +165,6 @@ dependencies = [
135165
"arrayvec",
136166
]
137167

138-
[[package]]
139-
name = "hex_lit"
140-
version = "0.1.1"
141-
source = "registry+https://github.com/rust-lang/crates.io-index"
142-
checksum = "3011d1213f159867b13cfd6ac92d2cd5f1345762c63be3554e84092d85a50bbd"
143-
144168
[[package]]
145169
name = "honggfuzz"
146170
version = "0.5.56"
@@ -276,7 +300,7 @@ version = "0.29.0"
276300
source = "registry+https://github.com/rust-lang/crates.io-index"
277301
checksum = "0e0cc0f1cf93f4969faf3ea1c7d8a9faed25918d96affa959720823dfe86d4f3"
278302
dependencies = [
279-
"bitcoin_hashes",
303+
"bitcoin_hashes 0.14.0",
280304
"rand",
281305
"secp256k1-sys",
282306
"serde",

Cargo.toml

+32-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ base64 = ["bitcoin/base64"]
2424

2525
[dependencies]
2626
bech32 = { version = "0.11.0", default-features = false }
27-
bitcoin = { version = "0.32.0", default-features = false }
27+
bitcoin = { version = "0.33.0-alpha", default-features = false }
2828

2929
# Do NOT use this as a feature! Use the `serde` feature instead.
3030
actual-serde = { package = "serde", version = "1.0.103", optional = true }
3131

3232
[dev-dependencies]
3333
serde_test = "1.0.147"
34-
bitcoin = { version = "0.32.0", features = ["base64"] }
34+
bitcoin = { version = "0.33.0-alpha", features = ["base64"] }
3535
secp256k1 = {version = "0.29.0", features = ["rand-std"]}
3636

3737
[[example]]
@@ -69,3 +69,33 @@ required-features = ["std", "base64", "compiler"]
6969
[workspace]
7070
members = ["fuzz"]
7171
exclude = ["embedded", "bitcoind-tests"]
72+
73+
# Patch rust-bitcoin crates, use `branch` here because its easier when testing new branches (worktrees).
74+
75+
[patch.crates-io.base58ck]
76+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
77+
branch = "master"
78+
79+
[patch.crates-io.bitcoin]
80+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
81+
branch = "master"
82+
83+
[patch.crates-io.bitcoin_hashes]
84+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
85+
branch = "master"
86+
87+
[patch.crates-io.bitcoin-internals]
88+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
89+
branch = "master"
90+
91+
[patch.crates-io.bitcoin-io]
92+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
93+
branch = "master"
94+
95+
[patch.crates-io.bitcoin-primitives]
96+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
97+
branch = "master"
98+
99+
[patch.crates-io.bitcoin-units]
100+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
101+
branch = "master"

bitcoind-tests/Cargo.toml

+44
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,47 @@ secp256k1 = {version = "0.29.0", features = ["rand-std"]}
3232
"0_19_1" = ["bitcoind/0_19_1"]
3333
"0_18_1" = ["bitcoind/0_18_1"]
3434
"0_17_1" = ["bitcoind/0_17_1"]
35+
36+
# Patch crates from bitcoind-json-rpc repo.
37+
38+
[patch.crates-io.bitcoind-json-rpc-client]
39+
git = "https://github.com/tcharding/rust-bitcoind-json-rpc"
40+
branch = "track-bitcoin-master"
41+
42+
[patch.crates-io.bitcoind-json-rpc-regtest]
43+
git = "https://github.com/tcharding/rust-bitcoind-json-rpc"
44+
branch = "track-bitcoin-master"
45+
46+
[patch.crates-io.bitcoind-json-rpc-types]
47+
git = "https://github.com/tcharding/rust-bitcoind-json-rpc"
48+
branch = "track-bitcoin-master"
49+
50+
# Patch rust-bitcoin crates, use `branch` here because its easier when testing new branches (worktrees).
51+
52+
[patch.crates-io.base58ck]
53+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
54+
branch = "master"
55+
56+
[patch.crates-io.bitcoin]
57+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
58+
branch = "master"
59+
60+
[patch.crates-io.bitcoin_hashes]
61+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
62+
branch = "master"
63+
64+
[patch.crates-io.bitcoin-internals]
65+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
66+
branch = "master"
67+
68+
[patch.crates-io.bitcoin-io]
69+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
70+
branch = "master"
71+
72+
[patch.crates-io.bitcoin-primitives]
73+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
74+
branch = "master"
75+
76+
[patch.crates-io.bitcoin-units]
77+
git = "https://github.com/rust-bitcoin/rust-bitcoin"
78+
branch = "master"

0 commit comments

Comments
 (0)