Skip to content

Commit 2a40e68

Browse files
committed
chore: Migrate to Rust 2024
1 parent bcc120d commit 2a40e68

File tree

11 files changed

+20
-13
lines changed

11 files changed

+20
-13
lines changed

.github/workflows/CI.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
os: windows-2022
3838
target: x86_64-pc-windows-msvc
3939
- toolchain-alias: msrv
40-
toolchain: 1.67.0
40+
toolchain: 1.85.0
4141
- toolchain-alias: stable
4242
toolchain: stable
4343
steps:
@@ -78,7 +78,7 @@ jobs:
7878
os: windows-2022
7979
target: x86_64-pc-windows-msvc
8080
- toolchain-alias: msrv
81-
toolchain: 1.67.0
81+
toolchain: 1.85.0
8282
- toolchain-alias: stable
8383
toolchain: stable
8484
steps:

CHANGELOG.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ All notable changes to this project will be documented in this file.
1414
The format is based on https://keepachangelog.com/[Keep a Changelog], and this
1515
project adheres to https://semver.org/[Semantic Versioning].
1616

17+
== {compare-url}/v0.1.2\...HEAD[Unreleased]
18+
19+
=== Changed
20+
21+
* Bump MSRV to 1.85.0 ({pull-request-url}/20[#20])
22+
1723
== {compare-url}/v0.1.1\...v0.1.2[0.1.2] - 2024-11-30
1824

1925
=== Added

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
name = "bit-int"
77
version = "0.1.2"
88
authors = ["Shun Sakai <[email protected]>"]
9-
edition = "2021"
10-
rust-version = "1.67.0"
9+
edition = "2024"
10+
rust-version = "1.85.0"
1111
description = "An arbitrary fixed bit-width integer library"
1212
documentation = "https://docs.rs/bit-int"
1313
readme = "README.md"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ See the [documentation][docs-url] for more details.
2929

3030
## Minimum supported Rust version
3131

32-
The minimum supported Rust version (MSRV) of this library is v1.67.0.
32+
The minimum supported Rust version (MSRV) of this library is v1.85.0.
3333

3434
## Source code
3535

clippy.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0 OR MIT
44

5-
msrv = "1.67.0"
5+
msrv = "1.85.0"

rustfmt.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0 OR MIT
44

5-
edition = "2021"
5+
edition = "2024"
66
format_code_in_doc_comments = true
77
format_macro_matchers = true
88
group_imports = "StdExternalCrate"
99
imports_granularity = "Crate"
10+
style_edition = "2024"
1011
wrap_comments = true

src/bit_int/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl_consts!(isize);
5757

5858
#[cfg(test)]
5959
mod tests {
60-
use super::super::{BitI128, BitI16, BitI32, BitI64, BitI8, BitIsize};
60+
use super::super::{BitI8, BitI16, BitI32, BitI64, BitI128, BitIsize};
6161

6262
#[test]
6363
fn min() {

src/bit_int/convert.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl_from_bit_int_to_underlying_type!(isize);
2525

2626
#[cfg(test)]
2727
mod tests {
28-
use super::super::{BitI128, BitI16, BitI32, BitI64, BitI8, BitIsize};
28+
use super::super::{BitI8, BitI16, BitI32, BitI64, BitI128, BitIsize};
2929

3030
#[test]
3131
fn from_bit_int_to_underlying_type() {

src/bit_uint/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl_consts!(usize);
6060

6161
#[cfg(test)]
6262
mod tests {
63-
use super::super::{BitU128, BitU16, BitU32, BitU64, BitU8, BitUsize};
63+
use super::super::{BitU8, BitU16, BitU32, BitU64, BitU128, BitUsize};
6464

6565
#[test]
6666
fn min() {

src/bit_uint/convert.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl_from_bit_uint_to_underlying_type!(usize);
2525

2626
#[cfg(test)]
2727
mod tests {
28-
use super::super::{BitU128, BitU16, BitU32, BitU64, BitU8, BitUsize};
28+
use super::super::{BitU8, BitU16, BitU32, BitU64, BitU128, BitUsize};
2929

3030
#[test]
3131
fn from_bit_uint_to_underlying_type() {

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ mod bit_int;
7979
mod bit_uint;
8080

8181
pub use crate::{
82-
bit_int::{BitI128, BitI16, BitI32, BitI64, BitI8, BitInt, BitIsize},
83-
bit_uint::{BitU128, BitU16, BitU32, BitU64, BitU8, BitUint, BitUsize},
82+
bit_int::{BitI8, BitI16, BitI32, BitI64, BitI128, BitInt, BitIsize},
83+
bit_uint::{BitU8, BitU16, BitU32, BitU64, BitU128, BitUint, BitUsize},
8484
};

0 commit comments

Comments
 (0)