From 386492d7ad70c9f85c266f96f9a5e3e5c9b0599e Mon Sep 17 00:00:00 2001 From: nab138 Date: Tue, 17 Feb 2026 18:19:49 -0500 Subject: [PATCH] Allow fs-storage and keyring-storage to be enabled --- Cargo.lock | 2 +- isideload/Cargo.toml | 2 +- isideload/src/util/storage.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1f94952..aeab7f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1831,7 +1831,7 @@ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" [[package]] name = "isideload" -version = "0.2.8" +version = "0.2.9" dependencies = [ "aes 0.9.0-rc.4", "aes-gcm", diff --git a/isideload/Cargo.toml b/isideload/Cargo.toml index 49bfb9d..1a5e28c 100644 --- a/isideload/Cargo.toml +++ b/isideload/Cargo.toml @@ -3,7 +3,7 @@ name = "isideload" description = "Sideload iOS/iPadOS applications" license = "MIT" authors = ["Nicholas Sharp "] -version = "0.2.8" +version = "0.2.9" edition = "2024" repository = "https://github.com/nab138/isideload" documentation = "https://docs.rs/isideload" diff --git a/isideload/src/util/storage.rs b/isideload/src/util/storage.rs index 7b02db9..249af36 100644 --- a/isideload/src/util/storage.rs +++ b/isideload/src/util/storage.rs @@ -31,14 +31,14 @@ pub fn new_storage() -> impl SideloadingStorage { { return crate::util::keyring_storage::KeyringStorage::default(); } - #[cfg(feature = "fs-storage")] + #[cfg(all(feature = "fs-storage", not(feature = "keyring-storage")))] { return crate::util::fs_storage::FsStorage::default(); } #[cfg(not(any(feature = "keyring-storage", feature = "fs-storage")))] { tracing::warn!( - "Keyring storage not enabled, falling back to in-memory storage. This means that the anisette state and certificates will not be saved across runs. Enable the 'keyring-storage' or 'fs-storage' feature for persistance." + "Keyring and fs storage not enabled, falling back to in-memory storage. This means that the anisette state and certificates will not be saved across runs. Enable the 'keyring-storage' or 'fs-storage' feature for persistance." ); return InMemoryStorage::new(); }