Skip to content

Commit 0f3d524

Browse files
committed
Raise MSRV to 1.51.1
In 8273b80 we (I) added a dep on `hex` which silently raised the MSRV of this branch to Rust 1.51.1 Because of how we test on this branch this was not caught by CI. The version with this change has been released for 2 years now and no-one has complained implying that no-one is building with Rust 1.41 Although it is a violation of semver, lets just bump the MSRV in a point release and live with the mistake.
1 parent 9c66f90 commit 0f3d524

File tree

3 files changed

+9
-24
lines changed

3 files changed

+9
-24
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,7 @@ For more information please see `./CONTRIBUTING.md`.
7676

7777
## Minimum Supported Rust Version (MSRV)
7878

79-
This library should always compile with any combination of features (minus
80-
`no-std`) on **Rust 1.41.1** or **Rust 1.47** with `no-std`.
81-
82-
To build with the MSRV you will need to pin some dependencies (also for `no-std`):
83-
```
84-
cargo update -p serde --precise 1.0.156
85-
cargo update -p syn --precise 1.0.107
86-
```
79+
This library should always compile with any combination of features on **Rust 1.51.1**.
8780

8881
## Installing Rust
8982

bitcoin/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 0.30.3 - 2025-12-01
2+
3+
- Bump the MSRV to Rust 1.51.1
4+
5+
Sorry, we accidentally did this 2 years ago in 0.30.2, since no-one
6+
complained we decided to keep it even though it is a semver violation.
7+
If you need to build with Rust 1.41 please pin to `v0.30.1`.
8+
19
# 0.30.2 - 2023-11-16
210

311
- Expose valid (min, max) difficulty transition thresholds [#1820](Expose valid (min, max) difficulty transition thresholds)

bitcoin/contrib/test.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,6 @@ if cargo --version | grep beta; then
2323
STABLE=false
2424
fi
2525

26-
# Pin dependencies as required if we are using MSRV toolchain.
27-
if cargo --version | grep "1\.41"; then
28-
cargo update -p cc --precise 1.0.77
29-
# 1.0.157 uses syn 2.0 which requires edition 2018
30-
cargo update -p serde --precise 1.0.156
31-
32-
# latest arrayvec build fails because of `track_caller`.
33-
cargo update -p arrayvec --precise 0.7.2
34-
fi
35-
36-
# Pin dependencies as above (required for no-std tests that use Rust 1.47 toolchain).
37-
if cargo --version | grep "1\.47"; then
38-
cargo update -p serde --precise 1.0.156
39-
cargo update -p syn --precise 1.0.107
40-
fi
41-
4226
# We should not have any duplicate dependencies. This catches mistakes made upgrading dependencies
4327
# in one crate and not in another (e.g. upgrade bitcoin_hashes in bitcoin but not in secp).
4428
duplicate_dependencies=$(

0 commit comments

Comments
 (0)