ipify-async

A simple asynchronous library for obtaining your public IP address within Rust code.

Example

The following is a simple example using the library while leveraging the tokio runtime.

``` use ipify_async;

type Result = std::result::Result>;

[tokio::main]

async fn main() -> Result<()> { let ip = ipifyasync::getip().await.unwrap().to_string(); println!("{:?}", ip); Ok(()) } ```