A tiny crate providing the find_ip
function, which will return the public ip of the request.
this is simple to use tiny package. API documentation is here.
In Cargo.toml
:
toml
[dependencies]
ipfy_public_ip = "0.1.1"
And in your crate root:
rust
use ipfy_public_ip;
``` use ipfypublicip;
let res = ipfypublicip::find_ip(); println!("{}", res); ```