| Crates.io | qqwry |
| lib.rs | qqwry |
| version | 0.1.1 |
| created_at | 2021-04-21 12:32:40.031834+00 |
| updated_at | 2021-04-22 09:28:51.834525+00 |
| description | search ip address with qqwry.data using rust |
| homepage | |
| repository | https://github.com/zfh521/rust-qqwry |
| max_upload_size | |
| id | 387629 |
| size | 9,572 |
search ip address with "qqwry.data" using rust
usage example:
mod tests {
use crate::qqwry;
#[test]
fn it_works() {
let mut wry = qqwry::QQWry::from(String::from("/Users/zfh/Documents/qqwry.dat"));
let location = wry.read_ip_location("127.0.0.1");
println!("{:?}",location.unwrap());
}
}
IPLocation { index_offset: 8206782, record_offset: 2633253, start_ip: 2130706433, end_ip: 2130706433, country: "本机地址", area: " CZ88.NET" }