geo-ip

Crates.iogeo-ip
lib.rsgeo-ip
version0.1.0
sourcesrc
created_at2023-08-29 08:33:18.189693
updated_at2023-08-29 08:33:18.189693
descriptionAcquire geography location by IP address
homepagehttps://github.com/xmh0511
repositoryhttps://github.com/xmh0511/geo-ip
max_upload_size
id957794
size32,094
(xmh0511)

documentation

README

use geo_ip;
use serde_json::Value;

#[tokio::main]
async fn main() {
    let r = geo_ip::geo_ip::<Value>(None).await.unwrap();
	println!("{r:#?}");

	let r = geo_ip::geo_ip::<Value>(Some("1.1.1.1".to_owned())).await.unwrap();
}
Commit count: 6

cargo fmt