mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 06:26:16 +01:00
Allow fs-storage and keyring-storage to be enabled
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user