Skip to content

Commit edf3497

Browse files
committed
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.
1 parent 3190aa6 commit edf3497

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.100.0+0.20.2
2+
3+
- Change the crate version format [#76](https://github.com/rust-bitcoin/rust-bitcoinconsensus/pull/76)
4+
15
## v0.20.2-0.6.1
26

37
- Add derives on error type [#72](https://github.com/rust-bitcoin/rust-bitcoinconsensus/pull/72)

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "bitcoinconsensus"
3-
# The first part is the Bitcoin Core version, the second part is the version of this lib.
4-
version = "0.20.2-0.6.1"
3+
# The first part is the crate version, the second informational part is the Bitcoin Core version.
4+
version = "0.100.0+0.20.2"
55
authors = ["Tamas Blummer <tamas.blummer@gmail.com>"]
66
license = "Apache-2.0"
77
homepage = "https://github.com/rust-bitcoin/rust-bitcoinconsensus/"

0 commit comments

Comments
 (0)