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