Expand description
The ipify_api crate provides functionalities to retrieve your
public IP. This crate builds on rust-stable.
It uses hyper along with ipify.
To use this, add the following to your Cargo.toml.
[dependencies]
ipify_api = "1.0.0"and add this to your crate root:
extern crate ipify;Functionsยง
- get_ip
- This function takes an ipify endpoint to query. Works only on HTTP. If an empty string is given, it uses the default (http://api.ipify.org)