From 4db471b760bb8bfed00d525deb1fe10b6f667e21 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 18 Dec 2025 12:12:56 +1100 Subject: [PATCH 1/2] fix: downgrade to edition 2021 and MSRV 1.82 for stable Rust compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- rust/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index d3e0d6ed..08342375 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "cachekit-rs" version = "0.2.2" -edition = "2024" +edition = "2021" authors = ["cachekit Contributors"] description = "High-performance storage engine for caching with compression and encryption" -rust-version = "1.91" +rust-version = "1.82" license = "MIT" repository = "https://github.com/cachekit-io/cachekit-py" homepage = "https://github.com/cachekit-io/cachekit-py" From 9edd62783defc5bc5e39db8f3c2e87ec2f977bc7 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 18 Dec 2025 12:28:46 +1100 Subject: [PATCH 2/2] style: fix import ordering for edition 2021 rustfmt --- rust/src/lib.rs | 5 +++-- rust/src/python_bindings.rs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rust/src/lib.rs b/rust/src/lib.rs index acab2b5c..a2400ccd 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -8,11 +8,12 @@ pub use cachekit_core::{ByteStorage, OperationMetrics, StorageEnvelope}; #[cfg(feature = "encryption")] pub use cachekit_core::{ - EncryptionError, ZeroKnowledgeEncryptor, derive_domain_key, + derive_domain_key, encryption::{ - key_derivation::{TenantKeys, derive_tenant_keys, key_fingerprint}, + key_derivation::{derive_tenant_keys, key_fingerprint, TenantKeys}, key_rotation::KeyRotationState, }, + EncryptionError, ZeroKnowledgeEncryptor, }; // Python bindings (gated behind python feature) diff --git a/rust/src/python_bindings.rs b/rust/src/python_bindings.rs index 0b395c66..674e8574 100644 --- a/rust/src/python_bindings.rs +++ b/rust/src/python_bindings.rs @@ -92,11 +92,11 @@ impl PyByteStorage { #[cfg(feature = "encryption")] use cachekit_core::{ - ZeroKnowledgeEncryptor, encryption::{ - key_derivation::{TenantKeys, derive_domain_key, derive_tenant_keys, key_fingerprint}, + key_derivation::{derive_domain_key, derive_tenant_keys, key_fingerprint, TenantKeys}, key_rotation::KeyRotationState, }, + ZeroKnowledgeEncryptor, }; /// Python wrapper for ZeroKnowledgeEncryptor