Skip to content

Commit 66d3657

Browse files
authored
Upgrade to 2024 edition; MSRV 1.85 (#354)
Also includes clippy and rustfmt fixes so we're clean on Rust 1.85
1 parent fb37408 commit 66d3657

51 files changed

Lines changed: 178 additions & 136 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ssh-cipher.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
rust:
33-
- 1.81.0 # MSRV
33+
- 1.85.0 # MSRV
3434
- stable
3535
target:
3636
- thumbv7em-none-eabi
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
matrix:
5151
rust:
52-
- 1.81.0 # MSRV
52+
- 1.85.0 # MSRV
5353
- stable
5454
steps:
5555
- uses: actions/checkout@v4

.github/workflows/ssh-derive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
rust:
31-
- 1.61.0 # MSRV
31+
- 1.85.0 # MSRV
3232
- stable
3333
steps:
3434
- uses: actions/checkout@v4

.github/workflows/ssh-encoding.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
rust:
31-
- 1.81.0 # MSRV
31+
- 1.85.0 # MSRV
3232
- stable
3333
target:
3434
- thumbv7em-none-eabi
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
matrix:
4949
rust:
50-
- 1.81.0 # MSRV
50+
- 1.85.0 # MSRV
5151
- stable
5252
steps:
5353
- uses: actions/checkout@v4

.github/workflows/ssh-key.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
matrix:
6262
rust:
63-
- 1.81.0 # MSRV
63+
- 1.85.0 # MSRV
6464
- stable
6565
target:
6666
- thumbv7em-none-eabi
@@ -80,7 +80,7 @@ jobs:
8080
strategy:
8181
matrix:
8282
rust:
83-
- 1.81.0 # MSRV
83+
- 1.85.0 # MSRV
8484
- stable
8585
steps:
8686
- uses: actions/checkout@v4

.github/workflows/ssh-protocol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
matrix:
2727
rust:
28-
- 1.81.0 # MSRV
28+
- 1.85.0 # MSRV
2929
- stable
3030
steps:
3131
- uses: actions/checkout@v4

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: dtolnay/rust-toolchain@stable
2323
with:
24-
toolchain: 1.81.0
24+
toolchain: 1.85.0
2525
components: clippy
2626
- run: cargo clippy --all-features
2727

ssh-cipher/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ repository = "https://github.com/RustCrypto/SSH"
1515
categories = ["cryptography", "no-std"]
1616
keywords = ["crypto", "encryption", "openssh", "ssh"]
1717
readme = "README.md"
18-
edition = "2021"
19-
rust-version = "1.81"
18+
edition = "2024"
19+
rust-version = "1.85"
2020

2121
[dependencies]
2222
cipher = "=0.5.0-pre.6"

ssh-cipher/src/chacha20poly1305.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ pub use chacha20::ChaCha20Legacy as ChaCha20;
44

55
use crate::Tag;
66
use aead::{
7-
array::typenum::{U0, U16, U32, U8},
87
AeadCore, Error, KeyInit, KeySizeUser, Result,
8+
array::typenum::{U0, U8, U16, U32},
99
};
1010
use cipher::{KeyIvInit, StreamCipher, StreamCipherSeek};
1111
use poly1305::Poly1305;

ssh-cipher/src/decryptor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{Cipher, Error, Result};
44
use cipher::KeyIvInit;
55

66
#[cfg(feature = "aes-ctr")]
7-
use crate::{encryptor::ctr_encrypt as ctr_decrypt, Ctr128BE};
7+
use crate::{Ctr128BE, encryptor::ctr_encrypt as ctr_decrypt};
88

99
#[cfg(feature = "tdes")]
1010
use des::TdesEde3;

ssh-cipher/src/encryptor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use cipher::{Block, BlockCipher, BlockCipherEncrypt, KeyIvInit};
66
#[cfg(feature = "aes-ctr")]
77
use {
88
crate::Ctr128BE,
9-
cipher::{array::sizes::U16, StreamCipherCore},
9+
cipher::{StreamCipherCore, array::sizes::U16},
1010
};
1111

1212
#[cfg(feature = "tdes")]

0 commit comments

Comments
 (0)