#ip-address #com #unoffical #icanhazip

canihazip

A [unoffical] rust library for https://icanhazip.com/

5 stable releases

3.0.0 Sep 13, 2021
2.0.2 Aug 30, 2020
2.0.0 May 15, 2020
1.0.1 May 14, 2020

#151 in #com

MIT license

5KB
59 lines

canihasip-rs

Build Status Crates.io docs.rs

An [unoffical] rust crate for icanhazip

Usage

let ip = canihazip::plz_ip().await?;

Contributing

Please feel free to open a PR if there is something that can be improved!

License

canihazip-rs is licenced under the MIT licence.


lib.rs:

CanIHazIP

CanIHazIP gets your current public ip address using icanhazip

Example

let ip = canihazip::plz_ip().await?;

Dependencies

~4–16MB
~215K SLoC