Skip to content

Commit 2bc1c38

Browse files
authored
Upgrade to Rust 2024 edition; MSRV 1.85 (#89)
1 parent 13e501f commit 2bc1c38

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

.github/workflows/ascon.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
set-msrv:
2222
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
2323
with:
24-
msrv: 1.81.0
24+
msrv: 1.85.0
2525

2626
build:
2727
needs: set-msrv
@@ -46,7 +46,7 @@ jobs:
4646
minimal-versions:
4747
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4848
with:
49-
working-directory: ${{ github.workflow }}
49+
working-directory: ${{ github.workflow }}
5050

5151
test:
5252
needs: set-msrv

.github/workflows/keccak.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
set-msrv:
2222
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
2323
with:
24-
msrv: 1.81.0
24+
msrv: 1.85.0
2525

2626
build:
2727
needs: set-msrv
@@ -46,8 +46,8 @@ jobs:
4646
minimal-versions:
4747
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4848
with:
49-
working-directory: ${{ github.workflow }}
50-
stable-cmd: cargo hack test --release --feature-powerset --skip simd # `simd` requires nightly
49+
working-directory: ${{ github.workflow }}
50+
stable-cmd: cargo hack test --release --feature-powerset --skip simd # `simd` requires nightly
5151

5252
test:
5353
needs: set-msrv
@@ -111,7 +111,7 @@ jobs:
111111
runs-on: ubuntu-latest
112112
defaults:
113113
run:
114-
# Cross mounts only current package, i.e. by default it ignores workspace's Cargo.toml
114+
# Cross mounts only current package, i.e. by default it ignores workspace's Cargo.toml
115115
working-directory: .
116116
strategy:
117117
matrix:

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: RustCrypto/actions/cargo-cache@master
1818
- uses: dtolnay/rust-toolchain@master
1919
with:
20-
toolchain: 1.82.0
20+
toolchain: 1.85.0
2121
components: clippy
2222
- run: cargo clippy --all -- -D warnings
2323

ascon/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ repository = "https://github.com/RustCrypto/sponges"
1313
keywords = ["Ascon", "crypto", "permutation"]
1414
categories = ["cryptography", "no-std"]
1515
readme = "README.md"
16-
edition = "2021"
17-
rust-version = "1.81"
16+
edition = "2024"
17+
rust-version = "1.85"
1818

1919
[dependencies]
20-
zeroize = { version = "1.6.0", default-features = false, optional=true }
20+
zeroize = { version = "1.6.0", default-features = false, optional = true }
2121

2222
[features]
2323
no_unroll = [] # Do not unroll loops for binary size reduction

ascon/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ portfolio of the [CAESAR competition].
2929

3030
## Minimum Supported Rust Version
3131

32-
This crate requires **Rust 1.81** at a minimum.
32+
This crate requires **Rust 1.85** at a minimum.
3333

3434
We may change the MSRV in the future, but it will be accompanied by a minor
3535
version bump.
@@ -58,7 +58,7 @@ dual licensed as above, without any additional terms or conditions.
5858
[build-image]: https://github.com/RustCrypto/sponges/actions/workflows/ascon.yml/badge.svg
5959
[build-link]: https://github.com/RustCrypto/sponges/actions/workflows/ascon.yml
6060
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
61-
[rustc-image]: https://img.shields.io/badge/rustc-1.60+-blue.svg
61+
[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg
6262
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
6363
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/369879-sponges
6464

benches/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ authors = [
66
"Sebastian Ramacher <sebastian.ramacher@ait.ac.at>",
77
"RustCrypto Developers",
88
]
9-
edition = "2021"
10-
rust-version = "1.60"
9+
edition = "2024"
10+
rust-version = "1.85"
1111
publish = false
1212

1313
[workspace]

keccak/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ repository = "https://github.com/RustCrypto/sponges"
1313
keywords = ["crypto", "sponge", "keccak", "keccak-f", "keccak-p"]
1414
categories = ["cryptography", "no-std"]
1515
readme = "README.md"
16-
edition = "2021"
17-
rust-version = "1.81"
16+
edition = "2024"
17+
rust-version = "1.85"
1818

1919
[features]
2020
asm = [] # Use optimized assembly when available (currently only ARMv8)

keccak/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ is built on this crate.
2222

2323
## Minimum Supported Rust Version
2424

25-
Rust **1.81** or higher.
25+
Rust **1.85** or higher.
2626

2727
Minimum supported Rust version can be changed in the future, but it will be
2828
done with a minor version bump.
@@ -56,7 +56,7 @@ dual licensed as above, without any additional terms or conditions.
5656
[build-image]: https://github.com/RustCrypto/sponges/actions/workflows/keccak.yml/badge.svg
5757
[build-link]: https://github.com/RustCrypto/sponges/actions/workflows/keccak.yml
5858
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
59-
[rustc-image]: https://img.shields.io/badge/rustc-1.60+-blue.svg
59+
[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg
6060
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
6161
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/369879-sponges
6262

keccak/benches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
extern crate keccak;
55
extern crate test;
66

7-
use keccak::{f1600, f200, f400, f800, p1600};
7+
use keccak::{f200, f400, f800, f1600, p1600};
88

99
macro_rules! impl_bench {
1010
($name:ident, $fn:ident, $type:expr) => {

keccak/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pub fn f1600(state: &mut [u64; PLEN]) {
202202
#[cfg(feature = "simd")]
203203
/// SIMD implementations for Keccak-f1600 sponge function
204204
pub mod simd {
205-
use crate::{keccak_p, LaneSize, PLEN};
205+
use crate::{LaneSize, PLEN, keccak_p};
206206
pub use core::simd::{u64x2, u64x4, u64x8};
207207

208208
macro_rules! impl_lanesize_simd_u64xn {
@@ -289,7 +289,7 @@ pub fn keccak_p<L: LaneSize>(state: &mut [L; PLEN], round_count: usize) {
289289

290290
#[cfg(test)]
291291
mod tests {
292-
use crate::{keccak_p, LaneSize, PLEN};
292+
use crate::{LaneSize, PLEN, keccak_p};
293293

294294
fn keccak_f<L: LaneSize>(state_first: [L; PLEN], state_second: [L; PLEN]) {
295295
let mut state = [L::default(); PLEN];

0 commit comments

Comments
 (0)