mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Fix compiling by features
This commit is contained in:
@@ -40,7 +40,7 @@ core_device_proxy = ["dep:serde_json", "dep:json", "dep:byteorder"]
|
||||
heartbeat = []
|
||||
installation_proxy = []
|
||||
mounter = ["dep:sha2"]
|
||||
usbmuxd = []
|
||||
usbmuxd = ["tokio/net"]
|
||||
tcp = ["tokio/net"]
|
||||
tss = ["dep:uuid", "dep:reqwest"]
|
||||
tunneld = ["dep:serde_json", "dep:json", "dep:reqwest"]
|
||||
@@ -50,6 +50,7 @@ xpc = [
|
||||
"dep:uuid",
|
||||
"dep:async-recursion",
|
||||
"dep:base64",
|
||||
"dep:json",
|
||||
]
|
||||
full = [
|
||||
"core_device_proxy",
|
||||
|
||||
@@ -283,7 +283,7 @@ pub enum IdeviceError {
|
||||
#[error("image not mounted")]
|
||||
ImageNotMounted,
|
||||
|
||||
#[cfg(feature = "tss")]
|
||||
#[cfg(any(feature = "tss", feature = "tunneld"))]
|
||||
#[error("http reqwest error")]
|
||||
Reqwest(#[from] reqwest::Error),
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
use log::debug;
|
||||
use openssl::sha::Sha384;
|
||||
|
||||
use crate::{lockdownd::LockdowndClient, tss::TSSRequest, Idevice, IdeviceError, IdeviceService};
|
||||
use crate::{lockdownd::LockdowndClient, Idevice, IdeviceError, IdeviceService};
|
||||
|
||||
#[cfg(feature = "tss")]
|
||||
use crate::tss::TSSRequest;
|
||||
|
||||
/// Manages mounted images on the idevice.
|
||||
/// NOTE: A lockdown client must be established and queried after establishing a mounter client, or
|
||||
@@ -318,6 +321,7 @@ impl ImageMounter {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(feature = "tss")]
|
||||
pub async fn mount_personalized(
|
||||
&mut self,
|
||||
provider: &dyn crate::provider::IdeviceProvider,
|
||||
@@ -340,6 +344,7 @@ impl ImageMounter {
|
||||
.await
|
||||
}
|
||||
|
||||
#[cfg(feature = "tss")]
|
||||
/// Calling this has the potential of closing the socket,
|
||||
/// so a provider is required for this abstraction.
|
||||
#[allow(clippy::too_many_arguments)] // literally nobody asked
|
||||
|
||||
Reference in New Issue
Block a user