|
| 1 | +#[cfg(feature = "26_0")] // This is all features. |
| 2 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v26_0"} |
| 3 | + |
| 4 | +#[cfg(all(feature = "25_1", not(feature = "26_0")))] |
| 5 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v25.1"} |
| 6 | + |
| 7 | +#[cfg(all(feature = "25_0", not(feature = "25_1")))] |
| 8 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v25.0"} |
| 9 | + |
| 10 | +#[cfg(all(feature = "24_0_1", not(feature = "25_0")))] |
| 11 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v24.0.1"} |
| 12 | + |
| 13 | +#[cfg(all(feature = "23_1", not(feature = "24_0_1")))] |
| 14 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v23.1"} |
| 15 | + |
| 16 | +#[cfg(all(feature = "22_1", not(feature = "23_1")))] |
| 17 | +#[allow(unused_imports)] // Not all users need the json types. |
| 18 | +pub use bitcoind_json_rpc::{client_sync::v22::Client, json::v22 as json}; |
| 19 | + |
| 20 | +#[cfg(all(feature = "0_21_2", not(feature = "22_1")))] |
| 21 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v22.2"} |
| 22 | + |
| 23 | +#[cfg(all(feature = "0_20_2", not(feature = "0_21_2")))] |
| 24 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v0.20.2"} |
| 25 | + |
| 26 | +#[cfg(all(feature = "0_19_1", not(feature = "0_20_2")))] |
| 27 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v0.19.1"} |
| 28 | + |
| 29 | +#[cfg(all(feature = "0_18_1", not(feature = "0_19_1")))] |
| 30 | +compile_error!{"bitcoind-json-rpc does not support bitcoind v0.18.1"} |
| 31 | + |
| 32 | +#[cfg(all(feature = "0_17_1", not(feature = "0_18_1")))] |
| 33 | +#[allow(unused_imports)] // Not all users need the json types. |
| 34 | +pub use bitcoind_json_rpc::{client_sync::v17::Client, json::v17 as json}; |
0 commit comments