Documentation
  • Coverage
  • 14.29%
    1 out of 7 items documented1 out of 6 items with examples
  • Size
  • Source code size: 20.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • hhatto/pit-rs
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hhatto

pit-rs

pit for Rust

Usage

[dependencies]
pit = { git = "https://github.com/hhatto/pit-rs", branch = "master" }
extern crate pit;

use pit::Pit;

fn main() {
    let p = Pit::new();
    let config = p.get("twitter.com");
    match config {
        None => {
            println!("not provide config value");
            return;
        },
        Some(_) => {},
    }

    let config = config.unwrap();
    let username = config.get("username").unwrap();
    let password = config.get("password").unwrap();
    println!("username={}, password={}", username, password);
}

for developer

$ cargo test -- --test-threads=1