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
:
[dependencies]
ipfy-public-ip = "0.1.1"
And in your crate root:
use ipfy_public_ip;
use ipfy_public_ip;
let res = ipfy_public_ip::find_ip();
println!("{}", res);