whois 0.1.0

a whois client library inspired by https://github.com/hjr265/node-whois
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented0 out of 3 items with examples
  • Size
  • Source code size: 6.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • 5nyper/whois-rs
    6 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Vikaton

whois-rs Build status

a whois client library, inspired by https://github.com/hjr265/node-whois

#Example

extern crate whois;
extern crate rustc_serialize;

use whois::WhoIs;
use rustc_serialize::json::Json;

fn main() {
    let data = WhoIs::new("google.com".to_owned()).lookup();
    let foo = &Json::from_str(&data.unwrap()).unwrap();
    let object = foo.as_object().unwrap();
    for (key, value) in object {
        println!("{}: {}", key, match *value {
            Json::String(ref v) => format!("{}", v),
            _ => break
        });
    }
}

#TODO

  • Error-Handling and WHOIS server following