mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Implement usbmuxd protocol
This commit is contained in:
@@ -29,6 +29,10 @@ path = "src/mounter.rs"
|
||||
name = "core_device_proxy_tun"
|
||||
path = "src/core_device_proxy_tun.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "idevice_id"
|
||||
path = "src/idevice_id.rs"
|
||||
|
||||
|
||||
[dependencies]
|
||||
idevice = { path = "../idevice", features = ["full"] }
|
||||
|
||||
13
tools/src/idevice_id.rs
Normal file
13
tools/src/idevice_id.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
// Jackson Coxson
|
||||
// Gets the devices from the muxer
|
||||
|
||||
use idevice::usbmuxd::UsbmuxdConnection;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
|
||||
let mut muxer = UsbmuxdConnection::default().await.unwrap();
|
||||
let res = muxer.get_devices().await.unwrap();
|
||||
println!("{res:#?}");
|
||||
}
|
||||
Reference in New Issue
Block a user