-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make every version imply the one before it
This allows the library to be compiled with any combination of versions of Bitcoin Core -- it will just use the highest one. This won't guarantee compatibility because Bitcoin Core sometimes makes backward-compatibility breaking changes ... but it is much better than the current situation where if you specify multiple feature flags, the library won't compile at all.
- Loading branch information
Showing
4 changed files
with
29 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,36 @@ | ||
#[cfg(not(any( | ||
feature = "23_0", | ||
feature = "22_0", | ||
feature = "0_21_1", | ||
feature = "0_21_0", | ||
feature = "0_20_1", | ||
feature = "0_20_0", | ||
feature = "0_19_1", | ||
feature = "0_19_0_1", | ||
feature = "0_18_1", | ||
feature = "0_18_0", | ||
feature = "0_17_1", | ||
)))] | ||
pub const VERSION: &str = "N/A"; | ||
|
||
#[cfg(feature = "23_0")] | ||
pub const VERSION: &str = "23.0"; | ||
|
||
#[cfg(feature = "22_0")] | ||
#[cfg(all(feature = "22_0", not(feature = "23_0")))] | ||
pub const VERSION: &str = "22.0"; | ||
|
||
#[cfg(feature = "0_21_1")] | ||
#[cfg(all(feature = "0_21_1", not(feature = "22_0")))] | ||
pub const VERSION: &str = "0.21.1"; | ||
|
||
#[cfg(feature = "0_21_0")] | ||
#[cfg(all(feature = "0_21_0", not(feature = "0_21_1")))] | ||
pub const VERSION: &str = "0.21.0"; | ||
|
||
#[cfg(feature = "0_20_1")] | ||
#[cfg(all(feature = "0_20_1", not(feature = "0_20_1")))] | ||
pub const VERSION: &str = "0.20.1"; | ||
|
||
#[cfg(feature = "0_20_0")] | ||
#[cfg(all(feature = "0_20_0", not(feature = "0_20_1")))] | ||
pub const VERSION: &str = "0.20.0"; | ||
|
||
#[cfg(feature = "0_19_1")] | ||
#[cfg(all(feature = "0_19_1", not(feature = "0_20_0")))] | ||
pub const VERSION: &str = "0.19.1"; | ||
|
||
#[cfg(feature = "0_19_0_1")] | ||
#[cfg(all(feature = "0_19_0_1", not(feature = "0_19_1")))] | ||
pub const VERSION: &str = "0.19.0.1"; | ||
|
||
#[cfg(feature = "0_18_1")] | ||
#[cfg(all(feature = "0_18_1", not(feature = "0_19_0_1")))] | ||
pub const VERSION: &str = "0.18.1"; | ||
|
||
#[cfg(feature = "0_18_0")] | ||
#[cfg(all(feature = "0_18_0", not(feature = "0_18_1")))] | ||
pub const VERSION: &str = "0.18.0"; | ||
|
||
#[cfg(feature = "0_17_1")] | ||
#[cfg(all(feature = "0_17_1", not(feature = "0_18_0")))] | ||
pub const VERSION: &str = "0.17.1"; | ||
|
||
#[cfg(not(feature = "0_17_1"))] | ||
pub const VERSION: &str = "N/A"; | ||
|