Rust program that fetches and displays your IP address along with its geographical location using the ipinfo.io
API.
This project uses the following dependencies:
reqwest
: For making HTTP requestsserde
: For parsing JSON responsestokio
: For asynchronous runtime
To build and run this project, you need to have Rust and Cargo installed on your system.
cargo build --release
sudo cp target/release/ip_info /usr/local/bin/
Run terminal
ip_info