| Crates.io | ipfy-public-ip |
| lib.rs | ipfy-public-ip |
| version | 0.1.2 |
| created_at | 2023-09-27 13:07:20.602012+00 |
| updated_at | 2023-09-30 18:16:47.059668+00 |
| description | this package uses ipify to get the public ip and return the ipv4 ip address of the request |
| homepage | https://github.com/surrenderoz/ipify-public-ip.git |
| repository | https://github.com/surrenderoz/ipify-public-ip.git |
| max_upload_size | |
| id | 984673 |
| size | 3,048 |
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);