Skip to content

Commit 9045e5e

Browse files
committed
Use range dependencies
The last couple of releases of `bitcoincore-rpc` and `bitcoin_hashes` have not required code changes here. This means we can use range dependencies. The benefit is that it makes the upgrade of other crates that use `bitcoind` easier. Tested by pinning `hashes` with: - cargo update -p [email protected] --precise 0.13.0 - cargo update -p [email protected] --precise 0.14.0 And then pinning `bitcoincore-rpc` with all of the dependencies in the range and running `cargo check --all --all-features --all-targets` E.g (using `cc` as alias to the cargo check command above) - cargo update -p bitcoincore-rpc --precise 0.17.0 && cc - cargo update -p bitcoincore-rpc --precise 0.18.0 && cc - cargo update -p bitcoincore-rpc --precise 0.19.0 && cc Bump the crate patch version so we can release this change in a point release. Since this is a pre-1.0 crate I believe this is ok to do.
1 parent 9aab8ac commit 9045e5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ edition = "2018"
1111
categories = ["cryptography::cryptocurrencies", "development-tools::testing"]
1212

1313
[dependencies]
14-
bitcoincore-rpc = { version = "0.18.0" }
14+
bitcoincore-rpc = { version = ">= 0.17.0, <= 0.19" }
1515
log = "0.4"
1616
which = "4.2.5"
1717
anyhow = "1.0.66"
@@ -21,7 +21,7 @@ tempfile = "3"
2121
env_logger = "0.9.0"
2222

2323
[build-dependencies]
24-
bitcoin_hashes = { version = "0.13", optional = true }
24+
bitcoin_hashes = { version = ">= 0.13, <= 0.14", optional = true }
2525
flate2 = { version = "1.0", optional = true }
2626
tar = { version = "0.4", optional = true }
2727
minreq = { version = "2.9.1", default-features = false, features = [

0 commit comments

Comments
 (0)