Skip to content

Commit fac326d

Browse files
committed
Bump MSRV to 1.74.0
In line with `rust-bitcoin` bump to Rust 1.74.0 Note that other major projects in the Rust Bitcoin eccosystem have or will, bump to 1.85.0 (in Debian Stable). The reason I've done this PR is because I'd like to re-write CI in line with `rust-bitcoin` and bumping the MSRV is easier than debugging the MSRV job.
1 parent b7fab3a commit fac326d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ jobs:
6868
run: ./contrib/test.sh
6969

7070
MSRV:
71-
name: Test - 1.56.1 toolchain
71+
name: Test - 1.74.0 toolchain
7272
runs-on: ubuntu-latest
7373
strategy:
7474
fail-fast: false
7575
steps:
7676
- name: Checkout Crate
7777
uses: actions/checkout@v4
7878
- name: Checkout Toolchain
79-
uses: dtolnay/rust-toolchain@1.56.1
79+
uses: dtolnay/rust-toolchain@1.74.0
8080
- name: Running test script
8181
env:
8282
DO_FEATURE_MATRIX: true

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ readme = "README.md"
99
keywords = ["base32", "encoding", "bech32", "bitcoin", "cryptocurrency"]
1010
categories = ["encoding", "cryptography::cryptocurrencies"]
1111
license = "MIT"
12-
edition = "2018"
12+
edition = "2021"
13+
rust-version = "1.74.0"
1314

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

clippy.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "bech32-fuzz"
33
edition = "2021"
4-
rust-version = "1.56.1"
4+
rust-version = "1.74.0"
55
version = "0.0.1"
66
authors = ["Automatically generated"]
77
publish = false

src/primitives/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ where
155155
/// The number of fes encoded by n bytes, rounded up because we pad the fes.
156156
fn bytes_len_to_fes_len(bytes: usize) -> usize {
157157
let bits = bytes * 8;
158-
(bits + 4) / 5
158+
bits.div_ceil(5)
159159
}
160160

161161
impl<I> ExactSizeIterator for BytesToFes<I>

0 commit comments

Comments
 (0)