Skip to content

Commit b33ed3d

Browse files
committed
fix: raise MSRV to 1.82 (required by deps) and fix lint suppression
MSRV 1.80 was too optimistic - our dependencies require: - [email protected] requires rustc 1.82 - [email protected] requires rustc 1.81 - [email protected] requires rustc 1.82 - [email protected] requires rustc 1.81 Also moved #[allow(unused_assignments)] to field level since struct-level wasn't propagating to fields in derive macro expansion.
1 parent 08c6eed commit b33ed3d

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Full OS matrix for stable only; MSRV and beta on ubuntu only
2020
include:
2121
# MSRV - ensures we don't use newer Rust features
22-
- rust: "1.80"
22+
- rust: "1.82"
2323
os: ubuntu-latest
2424
# Stable - primary target, all platforms
2525
- rust: stable
@@ -51,7 +51,7 @@ jobs:
5151
run: cargo fmt --check
5252

5353
- name: Run clippy
54-
if: matrix.rust != '1.80'
54+
if: matrix.rust != '1.82'
5555
run: cargo clippy --all-features -- -D warnings
5656

5757
- name: Run tests (all features)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55
authors = ["cachekit Contributors"]
66
description = "LZ4 compression, xxHash3 integrity, AES-256-GCM encryption for byte payloads"
7-
rust-version = "1.80"
7+
rust-version = "1.82"
88
license = "MIT"
99
repository = "https://github.com/cachekit-io/cachekit-core"
1010
homepage = "https://github.com/cachekit-io/cachekit-core"

src/encryption/key_derivation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ pub struct TenantKeys {
162162
pub authentication_key: [u8; 32],
163163
pub cache_key_salt: [u8; 32],
164164
#[zeroize(skip)]
165+
#[allow(unused_assignments)] // False positive: field IS read, Zeroize derive triggers lint
165166
pub tenant_id: String,
166167
}
167168

src/encryption/key_rotation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ pub struct KeyRotationState {
125125
pub new_key: [u8; 32],
126126
/// Indicates if rotation is currently active (old_key exists)
127127
#[zeroize(skip)]
128+
#[allow(unused_assignments)] // False positive: field IS read, Zeroize derive triggers lint
128129
pub rotation_active: bool,
129130
}
130131

0 commit comments

Comments
 (0)