3 releases

0.0.3 Jul 31, 2019
0.0.2 Jul 31, 2019
0.0.1 Jul 31, 2019

#16 in #public-ip

Apache-2.0

6KB

iplocation

Simple Rust library that uses http://ip-api.com/json to gain location data based on your public IP address.

Example

use iplocation;

fn main() {
    let result = iplocation::get().unwrap();

    println!("{:?}", result);
}

Dependencies

~20MB
~434K SLoC