1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//! A crates.io crate name availability checker
//!
//! ## Installation
//! Simply add `checker = "0.0.3"` to your Cargo.toml
//!
//! ## Example
//! ```
//! use checker::{check, Package, Status};
//!
//! let result: Package = check("t").unwrap();
//!
//! assert_eq!(result.name, "t");
//! assert_eq!(result.is_taken(), true);
//! assert_eq!(result.is_inactive().unwrap(), true);
//!
//! assert!(result.days_since_last_updated().unwrap() >= 1825);
//! assert!(result.data.is_some());
//! assert!(result.owners.is_some());
//! ```

#![allow(dead_code, unused_variables)]

#[macro_use]
extern crate prettytable;

mod check;
mod client;
mod common;
mod data;
mod error;
mod opt;
mod package;
mod status;
mod table;

pub use crate::{check::check, error::Error, package::Package, status::Status};