pub fn parse(prj_path: &PathBuf) -> Option<Config> {
    let mut s = String::new();
    let path = prj_path.join("Rsbind.toml");
    if !path.exists() {
        println!("Rsbind.toml didn't found, skip parsing.");
        return None;
    }

    let mut f = File::open(&path).expect("open Rsbind.toml failed.");
    f.read_to_string(&mut s).expect("read Rsbind.toml failed.");
    toml::from_str::<Config>(&s).ok()
}
///
/// Parsing Rsbind.toml to Config struct.
///
Parsing Rsbind.toml to Config struct.
Parsing Rsbind . toml to Config struct .
pub fn parse(prj_path: &PathBuf) -> Option<Config> {
    let mut s = String::new();
    let path = prj_path.join("Rsbind.toml");
    if !path.exists() {
        println!("Rsbind.toml didn't found, skip parsing.");
        return None;
    }
    let mut f = File::open(&path).expect("open Rsbind.toml failed.");
    f.read_to_string(&mut s).expect("read Rsbind.toml failed.");
    toml::from_str::<Config>(&s).ok()
}
pub fn parse ( prj_path : & PathBuf ) -> Option < Config > { let mut s = String :: new ( ) ; let path = prj_path . join ( " " ) ; if ! path . exists ( ) { println ! ( " " ) ; return None ; } let mut f = File :: open ( & path ) . expect ( " " ) ; f . read_to_string ( & mut s ) . expect ( " " ) ; toml :: from_str :: < Config > ( & s ) . ok ( ) }
Parsing Rsbind.toml to Config struct.
Parsing Rsbind . toml to Config struct .
prj_path
&PathBuf