Allow fs-storage and keyring-storage to be enabled

This commit is contained in:
nab138
2026-02-17 18:19:49 -05:00
parent aaec0b83c8
commit 386492d7ad
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

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

View File

@@ -3,7 +3,7 @@ name = "isideload"
description = "Sideload iOS/iPadOS applications"
license = "MIT"
authors = ["Nicholas Sharp <nab@nabdev.me>"]
version = "0.2.8"
version = "0.2.9"
edition = "2024"
repository = "https://github.com/nab138/isideload"
documentation = "https://docs.rs/isideload"

View File

@@ -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();
}