From edf34975536a47707940dcb732779e8b1b402d69 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 13 Dec 2023 13:46:34 +1100 Subject: [PATCH] Change the crate version format Currently we use a version string of the form `0.20.2-0.6.1` While attempting to release of the `0.6` we found out that cargo ignores the stuff after the `-` so the newly released code is treated as a non-breaking change and pulled immediately by any crate that has `bitcoinconsensus` in its dependency graph. This broke everyone that uses it including `rust-bitcoin`. We have since yanked both the `0.6` releases. In order to function correctly with `cargo` change the format to put the crate version first and put the Core version second, note we use `+` (build) instead of `-` (pre-release). This should make `crates.io` display the latest version correctly also. --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d180e59a..bb70f5abd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.100.0+0.20.2 + +- Change the crate version format [#76](https://github.com/rust-bitcoin/rust-bitcoinconsensus/pull/76) + ## v0.20.2-0.6.1 - Add derives on error type [#72](https://github.com/rust-bitcoin/rust-bitcoinconsensus/pull/72) diff --git a/Cargo.toml b/Cargo.toml index 341fce20c..9de92f92e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bitcoinconsensus" -# The first part is the Bitcoin Core version, the second part is the version of this lib. -version = "0.20.2-0.6.1" +# The first part is the crate version, the second informational part is the Bitcoin Core version. +version = "0.100.0+0.20.2" authors = ["Tamas Blummer "] license = "Apache-2.0" homepage = "https://github.com/rust-bitcoin/rust-bitcoinconsensus/"