Skip to content

Commit 9b13722

Browse files
authored
fix: downgrade to edition 2021 and MSRV 1.80 for stable Rust compatibility (#32)
* fix: downgrade to edition 2021 and MSRV 1.82 for stable Rust compatibility Edition 2024 requires Rust 1.85+ which breaks installation for users on stable toolchains (e.g., Rust 1.84). MSRV 1.82 matches cachekit-core dependency requirements. Changes: - rust/Cargo.toml: edition 2024 → 2021, rust-version 1.91 → 1.82 Fixes #30 * style: fix import ordering for edition 2021 rustfmt
1 parent 88cc957 commit 9b13722

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

rust/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "cachekit-rs"
33
version = "0.2.2"
4-
edition = "2024"
4+
edition = "2021"
55
authors = ["cachekit Contributors"]
66
description = "High-performance storage engine for caching with compression and encryption"
7-
rust-version = "1.91"
7+
rust-version = "1.82"
88
license = "MIT"
99
repository = "https://github.com/cachekit-io/cachekit-py"
1010
homepage = "https://github.com/cachekit-io/cachekit-py"

rust/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ pub use cachekit_core::{ByteStorage, OperationMetrics, StorageEnvelope};
88

99
#[cfg(feature = "encryption")]
1010
pub use cachekit_core::{
11-
EncryptionError, ZeroKnowledgeEncryptor, derive_domain_key,
11+
derive_domain_key,
1212
encryption::{
13-
key_derivation::{TenantKeys, derive_tenant_keys, key_fingerprint},
13+
key_derivation::{derive_tenant_keys, key_fingerprint, TenantKeys},
1414
key_rotation::KeyRotationState,
1515
},
16+
EncryptionError, ZeroKnowledgeEncryptor,
1617
};
1718

1819
// Python bindings (gated behind python feature)

rust/src/python_bindings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ impl PyByteStorage {
9292

9393
#[cfg(feature = "encryption")]
9494
use cachekit_core::{
95-
ZeroKnowledgeEncryptor,
9695
encryption::{
97-
key_derivation::{TenantKeys, derive_domain_key, derive_tenant_keys, key_fingerprint},
96+
key_derivation::{derive_domain_key, derive_tenant_keys, key_fingerprint, TenantKeys},
9897
key_rotation::KeyRotationState,
9998
},
99+
ZeroKnowledgeEncryptor,
100100
};
101101

102102
/// Python wrapper for ZeroKnowledgeEncryptor

0 commit comments

Comments
 (0)