|
1 | 1 | // An explicit version of Bitcoin Core must be selected by enabling some feature. |
2 | 2 | // We check this here instead of in `lib.rs` because this file is included in `build.rs`. |
3 | | -#[cfg(all( |
4 | | - not(feature = "30_2"), |
5 | | - not(feature = "30_0"), |
6 | | - not(feature = "29_0"), |
7 | | - not(feature = "28_2"), |
8 | | - not(feature = "28_1"), |
9 | | - not(feature = "28_0"), |
10 | | - not(feature = "27_2"), |
11 | | - not(feature = "27_1"), |
12 | | - not(feature = "27_0"), |
13 | | - not(feature = "26_2"), |
14 | | - not(feature = "25_2"), |
15 | | - not(feature = "24_2"), |
16 | | - not(feature = "23_2"), |
17 | | - not(feature = "22_1"), |
18 | | - not(feature = "0_21_2"), |
19 | | - not(feature = "0_20_2"), |
20 | | - not(feature = "0_19_1"), |
21 | | - not(feature = "0_18_1"), |
22 | | - not(feature = "0_17_2") |
23 | | -))] |
| 3 | +#[cfg(not(feature = "0_17_2"))] // Remember: later version features enable earlier ones. |
24 | 4 | compile_error!("enable a feature in order to select the version of Bitcoin Core to use"); |
25 | 5 |
|
26 | | -#[cfg(feature = "30_2")] |
| 6 | +#[cfg(feature = "31_0")] |
27 | 7 | #[allow(dead_code)] // Triggers in --all-features builds. |
28 | | -pub const VERSION: &str = "30.2"; |
| 8 | +pub const VERSION: &str = "31.0"; |
29 | 9 |
|
30 | | -#[cfg(all(feature = "30_0", not(feature = "30_2")))] |
31 | | -pub const VERSION: &str = "30.0"; |
| 10 | +#[cfg(all(feature = "30_2", not(feature = "31_0")))] |
| 11 | +pub const VERSION: &str = "30.2"; |
32 | 12 |
|
33 | | -#[cfg(all(feature = "29_0", not(feature = "30_0")))] |
| 13 | +#[cfg(all(feature = "29_0", not(feature = "30_2")))] |
34 | 14 | pub const VERSION: &str = "29.0"; |
35 | 15 |
|
36 | 16 | #[cfg(all(feature = "28_2", not(feature = "29_0")))] |
37 | 17 | pub const VERSION: &str = "28.2"; |
38 | 18 |
|
39 | | -#[cfg(all(feature = "28_1", not(feature = "28_2")))] |
40 | | -pub const VERSION: &str = "28.1"; |
41 | | - |
42 | | -#[cfg(all(feature = "28_0", not(feature = "28_1")))] |
43 | | -pub const VERSION: &str = "28.0"; |
44 | | - |
45 | | -#[cfg(all(feature = "27_2", not(feature = "28_0")))] |
| 19 | +#[cfg(all(feature = "27_2", not(feature = "28_2")))] |
46 | 20 | pub const VERSION: &str = "27.2"; |
47 | 21 |
|
48 | | -#[cfg(all(feature = "27_1", not(feature = "27_2")))] |
49 | | -pub const VERSION: &str = "27.1"; |
50 | | - |
51 | | -#[cfg(all(feature = "27_0", not(feature = "27_1")))] |
52 | | -pub const VERSION: &str = "27.0"; |
53 | | - |
54 | | -#[cfg(all(feature = "26_2", not(feature = "27_0")))] |
| 22 | +#[cfg(all(feature = "26_2", not(feature = "27_2")))] |
55 | 23 | pub const VERSION: &str = "26.2"; |
56 | 24 |
|
57 | 25 | #[cfg(all(feature = "25_2", not(feature = "26_2")))] |
@@ -83,24 +51,5 @@ pub const VERSION: &str = "0.17.2"; |
83 | 51 |
|
84 | 52 | /// This is meaningless but we need it otherwise we can't get far enough into |
85 | 53 | /// the build process to trigger the `compile_error!` in `./versions.rs`. |
86 | | -#[cfg(all( |
87 | | - not(feature = "30_0"), |
88 | | - not(feature = "29_0"), |
89 | | - not(feature = "28_2"), |
90 | | - not(feature = "28_1"), |
91 | | - not(feature = "28_0"), |
92 | | - not(feature = "27_2"), |
93 | | - not(feature = "27_1"), |
94 | | - not(feature = "27_0"), |
95 | | - not(feature = "26_2"), |
96 | | - not(feature = "25_2"), |
97 | | - not(feature = "24_2"), |
98 | | - not(feature = "23_2"), |
99 | | - not(feature = "22_1"), |
100 | | - not(feature = "0_21_2"), |
101 | | - not(feature = "0_20_2"), |
102 | | - not(feature = "0_19_1"), |
103 | | - not(feature = "0_18_1"), |
104 | | - not(feature = "0_17_2") |
105 | | -))] |
| 54 | +#[cfg(not(feature = "0_17_2"))] // Remember: later version features enable earlier ones. |
106 | 55 | pub const VERSION: &str = "never-used"; |
0 commit comments