ipify_api

Crates.ioipify_api
lib.rsipify_api
version1.0.0
sourcesrc
created_at2018-08-22 12:10:05.080902
updated_at2018-08-22 12:10:05.080902
descriptionipify client
homepagehttps://github.com/aulisius/ipify-rs.git
repositoryhttps://github.com/aulisius/ipify-rs.git
max_upload_size
id80737
size3,430
​Faizaan (aulisius)

documentation

https://docs.rs/ipify_api/

README

Crates.io rust-stable crate-doc

ipify Client

This crate provides functionalities to retrieve your public IP. It uses hyper along with ipify. Works only on HTTP.

extern crate hyper;
extern crate ipify_api;
use hyper::rt::{self, Future};

fn main() {
    rt::run(
        ipify_api::get_ip("http://my-ipify-instance.rs")
            .map(|ip| println!("{}", ip))
            .map_err(|e| println!("{}", e)),
    );
}

Commit count: 1

cargo fmt