Skip to content

Commit a6e897f

Browse files
committed
Merge #719: Bump the MSRV
c95b411 CI: Run MSRV job with both lock files (Tobin C. Harding) d8bfe10 Bump MSRV to Rust 1.63.0 (Tobin C. Harding) f62bdf3 fuzz: Upgrade hongfuzz patch version (Tobin C. Harding) Pull request description: As we have done in `rust-bitcoin` bump the MSVR to Rust 1.63.0 Also, run the MSRV CI job with both lockfiles (which are currently different). ACKs for top commit: apoelstra: ACK c95b411 successfully ran local tests; glad I got #712 in first so I could do the release! Tree-SHA512: b3ae9583f10ac2d01353736fe68a37bc0fff6774e4ea935b4fbf16bdb3cb033b4c281b8cb45d9e6ead343d2b7033d042190369cbe21b953ac392d19ff564cf1a
2 parents 8f54b5e + c95b411 commit a6e897f

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ jobs:
5353
- name: "Run test script"
5454
run: ./maintainer-tools/ci/run_task.sh nightly
5555

56-
MSRV: # 1 jobs, minimal lock file only.
57-
name: Test - 1.56.1 toolchain
56+
MSRV: # 2 jobs, one per lock file.
57+
name: Test - 1.63.0 toolchain
5858
runs-on: ubuntu-latest
5959
strategy:
6060
fail-fast: false
6161
matrix:
62-
dep: [minimal]
62+
dep: [minimal, recent]
6363
steps:
6464
- name: "Checkout repo"
6565
uses: actions/checkout@v4
@@ -71,7 +71,7 @@ jobs:
7171
- name: "Select toolchain"
7272
uses: dtolnay/rust-toolchain@stable
7373
with:
74-
toolchain: "1.56.1"
74+
toolchain: "1.63.0"
7575
- name: "Set dependencies"
7676
run: cp Cargo-${{ matrix.dep }}.lock Cargo.lock
7777
- name: "Run test script"

Cargo-minimal.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ checksum = "3011d1213f159867b13cfd6ac92d2cd5f1345762c63be3554e84092d85a50bbd"
245245

246246
[[package]]
247247
name = "honggfuzz"
248-
version = "0.5.55"
248+
version = "0.5.56"
249249
source = "registry+https://github.com/rust-lang/crates.io-index"
250-
checksum = "848e9c511092e0daa0a35a63e8e6e475a3e8f870741448b9f6028d69b142f18e"
250+
checksum = "7c76b6234c13c9ea73946d1379d33186151148e0da231506b964b44f3d023505"
251251
dependencies = [
252252
"lazy_static",
253253
"memmap2",
@@ -307,9 +307,9 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
307307

308308
[[package]]
309309
name = "memmap2"
310-
version = "0.5.10"
310+
version = "0.9.4"
311311
source = "registry+https://github.com/rust-lang/crates.io-index"
312-
checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
312+
checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322"
313313
dependencies = [
314314
"libc",
315315
]

Cargo-recent.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ checksum = "3011d1213f159867b13cfd6ac92d2cd5f1345762c63be3554e84092d85a50bbd"
223223

224224
[[package]]
225225
name = "honggfuzz"
226-
version = "0.5.55"
226+
version = "0.5.56"
227227
source = "registry+https://github.com/rust-lang/crates.io-index"
228-
checksum = "848e9c511092e0daa0a35a63e8e6e475a3e8f870741448b9f6028d69b142f18e"
228+
checksum = "7c76b6234c13c9ea73946d1379d33186151148e0da231506b964b44f3d023505"
229229
dependencies = [
230230
"lazy_static",
231231
"memmap2",
@@ -285,9 +285,9 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
285285

286286
[[package]]
287287
name = "memmap2"
288-
version = "0.5.10"
288+
version = "0.9.4"
289289
source = "registry+https://github.com/rust-lang/crates.io-index"
290-
checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
290+
checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322"
291291
dependencies = [
292292
"libc",
293293
]

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ repository = "https://github.com/rust-bitcoin/rust-miniscript/"
88
description = "Miniscript: a subset of Bitcoin Script designed for analysis"
99
keywords = [ "crypto", "bitcoin", "miniscript", "script" ]
1010
readme = "README.md"
11-
edition = "2018"
11+
edition = "2021"
12+
rust-version = "1.63.0"
1213

1314
[features]
1415
default = ["std"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![Build](https://github.com/rust-bitcoin/rust-miniscript/workflows/Continuous%20integration/badge.svg)
22

3-
**Minimum Supported Rust Version:** 1.56.1
3+
**Minimum Supported Rust Version:** 1.63.0
44

55
# Miniscript
66

@@ -41,7 +41,7 @@ Enabling the `no-std` feature does not disable `std`. To disable the `std` featu
4141

4242
## Minimum Supported Rust Version (MSRV)
4343

44-
This library should always compile with any combination of features on **Rust 1.56.1**.
44+
This library should always compile with any combination of features on **Rust 1.63.0**.
4545

4646
Some dependencies do not play nicely with our MSRV, if you are running the tests
4747
you may need to pin some dependencies. See `./contrib/test.sh` for current pinning.

clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
msrv = "1.56.1"
1+
msrv = "1.63.0"
22
# plan API returns Self as an error type for an large-ish enum
33
large-error-threshold = 256

fuzz/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "descriptor-fuzz"
33
edition = "2021"
4-
rust-version = "1.56.1"
4+
rust-version = "1.63.0"
55
version = "0.0.1"
66
authors = ["Generated by fuzz/generate-files.sh"]
77
publish = false
@@ -10,7 +10,7 @@ publish = false
1010
cargo-fuzz = true
1111

1212
[dependencies]
13-
honggfuzz = { version = "0.5.55", default-features = false }
13+
honggfuzz = { version = "0.5.56", default-features = false }
1414
miniscript = { path = "..", features = [ "compiler" ] }
1515

1616
regex = "1.0"

fuzz/generate-files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cat > "$REPO_DIR/fuzz/Cargo.toml" <<EOF
1313
[package]
1414
name = "descriptor-fuzz"
1515
edition = "2021"
16-
rust-version = "1.56.1"
16+
rust-version = "1.63.0"
1717
version = "0.0.1"
1818
authors = ["Generated by fuzz/generate-files.sh"]
1919
publish = false

src/plan.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ impl Plan {
289289
stack
290290
.into_iter()
291291
.fold(Builder::new(), |builder, item| {
292-
use core::convert::TryFrom;
293292
let bytes = PushBytesBuf::try_from(item)
294293
.expect("All the possible placeholders can be made into PushBytesBuf");
295294
builder.push_slice(bytes)

src/primitives/threshold.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl<T, const MAX: usize> Threshold<T, MAX> {
5555
/// Constructs a threshold directly from a threshold value and collection.
5656
pub fn new(k: usize, inner: Vec<T>) -> Result<Self, ThresholdError> {
5757
if k == 0 || k > inner.len() || (MAX > 0 && inner.len() > MAX) {
58-
Err(ThresholdError { k, n: inner.len(), max: (MAX > 0).then(|| MAX) })
58+
Err(ThresholdError { k, n: inner.len(), max: (MAX > 0).then_some(MAX) })
5959
} else {
6060
Ok(Threshold { k, inner })
6161
}
@@ -68,7 +68,7 @@ impl<T, const MAX: usize> Threshold<T, MAX> {
6868
// Do an early return if our minimum size exceeds the max.
6969
if MAX > 0 && min_size > MAX {
7070
let n = iter.count();
71-
return Err(ThresholdError { k, n, max: (MAX > 0).then(|| MAX) });
71+
return Err(ThresholdError { k, n, max: (MAX > 0).then_some(MAX) });
7272
}
7373

7474
let mut inner = Vec::with_capacity(min_size);

0 commit comments

Comments
 (0)