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" 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