#github #client #server #com-hjr265-node-whois

whois

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

1 unstable release

Uses old Rust 2015

0.1.0 Jan 31, 2016

#970 in #github

Download history 7/week @ 2024-09-20 5/week @ 2024-09-27 1/week @ 2024-10-04 38/week @ 2024-10-11 82/week @ 2024-10-18 71/week @ 2024-10-25 68/week @ 2024-11-01 130/week @ 2024-11-08 46/week @ 2024-11-15 77/week @ 2024-11-22 72/week @ 2024-11-29

340 downloads per month
Used in yuto51942-servant

MIT license

5KB
83 lines

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

Dependencies

~225KB