#[cfg(any(
target_os = "android",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "linux",
target_os = "macos",
target_os = "solaris",
target_os = "tvos",
target_os = "visionos",
target_os = "watchos",
))]
#[tokio::main]
async fn main() -> hpx::Result<()> {
let resp = hpx::get("https://api.ip.sb/ip")
.interface("utun4")
.send()
.await?;
println!("{}", resp.text().await?);
Ok(())
}
#[cfg(not(any(
target_os = "android",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "linux",
target_os = "macos",
target_os = "solaris",
target_os = "tvos",
target_os = "visionos",
target_os = "watchos",
)))]
fn main() {}