Cargo Features
[dependencies]
corepc-node = { version = "0.7.0", default-features = false, features = ["download", "28_0", "27_2", "27_1", "27_0", "26_2", "26_1", "26_0", "25_2", "24_2", "23_2", "22_1", "0_21_2", "0_20_2", "0_19_1", "0_18_1", "0_17_1"] }
Please note, it is expected that a single version feature will be enabled however if you enable multiple the highest version number will take precedence.
cargo test --features=27_2,download
to download Bitcoin Core binaryv27.2
.cargo test --features=28_0
to usebitcoind
from the host environment.cargo test
is equivalent tocargo test --features=0_17_1
.cargo test --all-features
: Same as using latest version.cargo test --no-default-features
does not work, you MUST enable a version feature.
- default = 0_17_1
-
The
0_17_1
feature is set by default whenevercorepc-node
is added without
somewhere in the dependency tree.default-features = false - download = anyhow, bitcoin_hashes, flate2, minreq, tar, zip
-
Affects
corepc-node::downloaded_exe_path
… - 28_0 = 27_2
-
We support all minor releases of the latest three versions.
Affects
versions::VERSION
… - 27_2 28_0? = 27_1
-
Affects
versions::VERSION
… - 27_1 27_2? = 27_0
-
Affects
versions::VERSION
… - 27_0 27_1? = 26_2
-
Affects
versions::VERSION
… - 26_2 27_0? = 26_1
-
Affects
versions::VERSION
… - 26_1 26_2? = 26_0
-
Affects
versions::VERSION
… - 26_0 26_1? = 25_2
-
Affects
versions::VERSION
… - 25_2 26_0? = 24_2
-
We only support the latest minor version for older versions.
Affects
versions::VERSION
… - 24_2 25_2? = 23_2
-
Affects
versions::VERSION
… - 23_2 24_2? = 22_1
-
Affects
versions::VERSION
… - 22_1 23_2? = 0_21_2
-
Affects
versions::VERSION
… - 0_21_2 22_1? = 0_20_2
-
Affects
versions::VERSION
… - 0_20_2 0_21_2? = 0_19_1
-
Affects
versions::VERSION
… - 0_19_1 0_20_2? = 0_18_1
-
Affects
versions::VERSION
… - 0_18_1 0_19_1? = 0_17_1
-
Affects
versions::VERSION
… - 0_17_1 default 0_18_1?
-
Affects
versions::VERSION
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- anyhow build download?
- bitcoin_hashes build download?
-
Enables bitcoin_hashes >=0.13, <=0.14
- flate2 build download?
- tar build download?
- minreq build download?
- zip build download?
-
Enables zip ^0.5.13