Skip to content

Commit ac70617

Browse files
committed
Merge #693: Bump MSRV to 1.56.1
2d0c783 Tighten the version grep in vendor script (Tobin C. Harding) a2b78f4 Bump MSRV to 1.56.1 (Tobin C. Harding) Pull request description: As we have done in other parts of the ecosystem bump the MSRV to Rust `v1.56.1`. Done for `secp256k1` and `secp256k1-sys`. This was originally in #688 but there are too many things going on so here it is separately. ACKs for top commit: apoelstra: ACK 2d0c783 Tree-SHA512: 35ac5632428211b02f5b25780c3a680d8c9a68b238de7299242510091f9243fe2f6718817c865c3420e3afb64b32d52daf2cf372706067204e7de42e188c31c6
2 parents b370f67 + 2d0c783 commit ac70617

File tree

9 files changed

+20
-10
lines changed

9 files changed

+20
-10
lines changed

.github/workflows/rust.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ jobs:
5555
run: ./contrib/test.sh
5656

5757
MSRV:
58-
name: Test - 1.48.0 toolchain
58+
name: Test - 1.56.1 toolchain
5959
runs-on: ubuntu-latest
6060
strategy:
6161
fail-fast: false
6262
steps:
6363
- name: Checkout Crate
6464
uses: actions/checkout@v3
6565
- name: Checkout Toolchain
66-
uses: dtolnay/rust-toolchain@1.48.0
66+
uses: dtolnay/rust-toolchain@1.56.1
6767
- name: Running test script
6868
env:
6969
DO_FEATURE_MATRIX: true

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
3+
* Bump MSRV to Rust `v1.56.1`
4+
15
# 0.28.2 - 2024-01-30
26

37
* Implement `Hash` for `Scalar` [#674](https://github.com/rust-bitcoin/rust-secp256k1/pull/674)

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ documentation = "https://docs.rs/secp256k1/"
1010
description = "Rust wrapper library for Pieter Wuille's `libsecp256k1`. Implements ECDSA and BIP 340 signatures for the SECG elliptic curve group secp256k1 and related utilities."
1111
keywords = [ "crypto", "ECDSA", "secp256k1", "libsecp256k1", "bitcoin" ]
1212
readme = "README.md"
13-
edition = "2018"
13+
edition = "2021"
14+
rust-version = "1.56.1"
1415

1516
[package.metadata.docs.rs]
1617
all-features = true

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<a href="https://github.com/rust-bitcoin/rust-secp256k1/blob/master/LICENSE"><img alt="CC0 1.0 Universal Licensed" src="https://img.shields.io/badge/license-CC0--1.0-blue.svg"/></a>
77
<a href="https://github.com/rust-bitcoin/rust-secp256k1/actions?query=workflow%3AContinuous%20integration"><img alt="CI Status" src="https://github.com/rust-bitcoin/rust-secp256k1/workflows/Continuous%20integration/badge.svg"></a>
88
<a href="https://docs.rs/secp256k1"><img alt="API Docs" src="https://img.shields.io/badge/docs.rs-secp256k1-green"/></a>
9-
<a href="https://blog.rust-lang.org/2020/02/27/Rust-1.48.0.html"><img alt="Rustc Version 1.48.0+" src="https://img.shields.io/badge/rustc-1.48.0%2B-lightgrey.svg"/></a>
9+
<a href="https://blog.rust-lang.org/2020/02/27/Rust-1.56.1.html"><img alt="Rustc Version 1.56.1+" src="https://img.shields.io/badge/rustc-1.56.1.0%2B-lightgrey.svg"/></a>
1010
</p>
1111
</div>
1212

@@ -29,7 +29,7 @@ Contributions to this library are welcome. A few guidelines:
2929
* Any breaking changes must have an accompanied entry in CHANGELOG.md
3030
* No new dependencies, please.
3131
* No crypto should be implemented in Rust, with the possible exception of hash functions. Cryptographic contributions should be directed upstream to libsecp256k1.
32-
* This library should always compile with any combination of features on **Rust 1.48.0**.
32+
* This library should always compile with any combination of features on **Rust 1.56.1**.
3333

3434
### Githooks
3535

clippy.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv = "1.48.0"
1+
msrv = "1.56.1"

secp256k1-sys/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
3+
* Bump MSRV to Rust `v1.56.1`
4+
15
# 0.9.2 - 2023-12-18
26

37
* Fix incorrect FFI binding for `secp256k1_pubkey_combine`

secp256k1-sys/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ keywords = [ "secp256k1", "libsecp256k1", "ffi" ]
1313
readme = "README.md"
1414
build = "build.rs"
1515
links = "rustsecp256k1_v0_9_2"
16-
edition = "2018"
16+
edition = "2021"
17+
rust-version = "1.56.1"
1718

1819
[package.metadata.docs.rs]
1920
all-features = true

secp256k1-sys/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a href="https://crates.io/crates/secp256k1-sys"><img alt="Crate Info" src="https://img.shields.io/crates/v/secp256k1-sys.svg"/></a>
66
<a href="https://github.com/rust-bitcoin/rust-secp256k1/blob/master/LICENSE"><img alt="CC0 1.0 Universal Licensed" src="https://img.shields.io/badge/license-CC0--1.0-blue.svg"/></a>
77
<a href="https://docs.rs/secp256k1"><img alt="API Docs" src="https://img.shields.io/badge/docs.rs-secp256k1-green"/></a>
8-
<a href="https://blog.rust-lang.org/2020/02/27/Rust-1.48.0.html"><img alt="Rustc Version 1.48.0+" src="https://img.shields.io/badge/rustc-1.48.0%2B-lightgrey.svg"/></a>
8+
<a href="https://blog.rust-lang.org/2020/02/27/Rust-1.56.1.html"><img alt="Rustc Version 1.56.1+" src="https://img.shields.io/badge/rustc-1.56.1%2B-lightgrey.svg"/></a>
99
</p>
1010
</div>
1111

@@ -49,4 +49,4 @@ to your `RUSTFLAGS` variable.
4949

5050
## Minimum Supported Rust Version
5151

52-
This library should always compile with any combination of features on **Rust 1.48.0**.
52+
This library should always compile with any combination of features on **Rust 1.56.1**.

secp256k1-sys/vendor-libsecp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
SECP_VENDOR_GIT_ROOT="$(realpath "$SECP_VENDOR_GIT_ROOT")"
99
fi
1010
SECP_SYS="$SECP_VENDOR_GIT_ROOT"/secp256k1-sys
11-
DEFAULT_VERSION_CODE=$(grep version "$SECP_SYS/Cargo.toml" | sed 's/\./_/g' | sed 's/.*"\(.*\)".*/\1/')
11+
DEFAULT_VERSION_CODE=$(grep "^version" "$SECP_SYS/Cargo.toml" | sed 's/\./_/g' | sed 's/.*"\(.*\)".*/\1/')
1212
DEFAULT_DEPEND_DIR="$SECP_SYS/depend"
1313
DEFAULT_SECP_REPO=https://github.com/bitcoin-core/secp256k1.git
1414

0 commit comments

Comments
 (0)