mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Replace log crate with tracing
This commit is contained in:
@@ -146,8 +146,8 @@ path = "src/installcoordination_proxy.rs"
|
||||
[dependencies]
|
||||
idevice = { path = "../idevice", features = ["full"], default-features = false }
|
||||
tokio = { version = "1.43", features = ["full"] }
|
||||
log = { version = "0.4" }
|
||||
env_logger = { version = "0.11" }
|
||||
tracing = { version = "0.1.41" }
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
# tun-rs = { version = "1.5", features = ["async"] }
|
||||
sha2 = { version = "0.10" }
|
||||
ureq = { version = "3" }
|
||||
|
||||
@@ -9,7 +9,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("activation")
|
||||
.about("mobileactivationd")
|
||||
|
||||
@@ -13,7 +13,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("afc")
|
||||
.about("Manage files on the device")
|
||||
|
||||
@@ -7,7 +7,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("amfi")
|
||||
.about("Mess with developer mode")
|
||||
|
||||
@@ -12,7 +12,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("remotexpc")
|
||||
.about("Get services from RemoteXPC")
|
||||
|
||||
@@ -12,7 +12,7 @@ mod pcap;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("amfi")
|
||||
.about("Capture Bluetooth packets")
|
||||
|
||||
@@ -11,7 +11,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("companion_proxy")
|
||||
.about("Apple Watch things")
|
||||
|
||||
@@ -10,7 +10,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("crash_logs")
|
||||
.about("Manage crash logs")
|
||||
|
||||
@@ -12,7 +12,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("remotexpc")
|
||||
.about("Get services from RemoteXPC")
|
||||
|
||||
@@ -8,7 +8,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("idevicediagnostics")
|
||||
.about("Interact with the diagnostics interface of a device")
|
||||
|
||||
@@ -12,7 +12,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("remotexpc")
|
||||
.about("Gets a sysdiagnose")
|
||||
|
||||
@@ -8,7 +8,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
let matches = Command::new("core_device_proxy_tun")
|
||||
.about("Start a tunnel")
|
||||
.arg(
|
||||
|
||||
@@ -6,7 +6,7 @@ use idevice::usbmuxd::UsbmuxdConnection;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let mut muxer = UsbmuxdConnection::default().await.unwrap();
|
||||
let res = muxer.get_devices().await.unwrap();
|
||||
|
||||
@@ -8,7 +8,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("core_device_proxy_tun")
|
||||
.about("Start a tunnel")
|
||||
|
||||
@@ -7,7 +7,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("ideviceinstaller")
|
||||
.about("Install/upgrade apps on an iOS device (AFC + InstallationProxy)")
|
||||
|
||||
@@ -10,7 +10,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("installationcoordination_proxy")
|
||||
.about("")
|
||||
|
||||
@@ -8,7 +8,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("core_device_proxy_tun")
|
||||
.about("Start a tunnel")
|
||||
|
||||
@@ -10,7 +10,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("simulate_location")
|
||||
.about("Simulate device location")
|
||||
|
||||
@@ -8,7 +8,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("lockdown")
|
||||
.about("Start a tunnel")
|
||||
|
||||
@@ -9,7 +9,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("core_device_proxy_tun")
|
||||
.about("Start a tunnel")
|
||||
|
||||
@@ -15,7 +15,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("mobilebackup2")
|
||||
.about("Mobile Backup 2 tool for iOS devices")
|
||||
|
||||
@@ -13,7 +13,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("core_device_proxy_tun")
|
||||
.about("Start a tunnel")
|
||||
|
||||
@@ -6,7 +6,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
let matches = Command::new("notifications")
|
||||
.about("start notifications")
|
||||
.arg(
|
||||
|
||||
@@ -7,7 +7,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("os_trace_relay")
|
||||
.about("Relay system logs")
|
||||
|
||||
@@ -9,7 +9,7 @@ use idevice::{
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("pair")
|
||||
.about("Pair with the device")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use idevice::bt_packet_logger::BtPacketKind;
|
||||
use log::warn;
|
||||
use tokio::io::{AsyncWrite, AsyncWriteExt};
|
||||
use tracing::warn;
|
||||
|
||||
// Classic PCAP (big-endian) global header for DLT_BLUETOOTH_HCI_H4_WITH_PHDR (201)
|
||||
const PCAP_GLOBAL_HEADER_BE: [u8; 24] = [
|
||||
|
||||
@@ -10,7 +10,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("pcapd")
|
||||
.about("Capture IP packets")
|
||||
|
||||
@@ -7,7 +7,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("preboard")
|
||||
.about("Mess with developer mode")
|
||||
|
||||
@@ -8,7 +8,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("process_control")
|
||||
.about("Query process control")
|
||||
|
||||
@@ -11,7 +11,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("remotexpc")
|
||||
.about("Get services from RemoteXPC")
|
||||
|
||||
@@ -10,7 +10,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("restore_service")
|
||||
.about("Interact with the Restore Service service")
|
||||
|
||||
@@ -8,7 +8,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
let matches = Command::new("screen_shot")
|
||||
.about("take screenshot")
|
||||
.arg(
|
||||
|
||||
@@ -7,7 +7,7 @@ mod common;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let matches = Command::new("syslog_relay")
|
||||
.about("Relay system logs")
|
||||
|
||||
Reference in New Issue
Block a user