qqwry 0.1.1

search ip address with qqwry.data using rust
Documentation
  • Coverage
  • 6.67%
    1 out of 15 items documented0 out of 6 items with examples
  • Size
  • Source code size: 9.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • zfh521/rust-qqwry
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zfh521

rust-qqwry

docs 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" }