pub fn create_pkg_dir(out_dir: &Path) -> Result<(), failure::Error> {
    let _ = fs::remove_dir_all(&out_dir); // Clean up any existing directory and ignore errors
    fs::create_dir_all(&out_dir)?;
    fs::write(out_dir.join(".gitignore"), "*")?;
    Ok(())
}
/// Construct our `pkg` directory in the crate.
Construct our `pkg` directory in the crate.
Construct our ` pkg ` directory in the crate .
pub fn create_pkg_dir(out_dir: &Path) -> Result<(), failure::Error> {
    let _ = fs::remove_dir_all(&out_dir); // Clean up any existing directory and ignore errors
    fs::create_dir_all(&out_dir)?;
    fs::write(out_dir.join(".gitignore"), "*")?;
    Ok(())
}
pub fn create_pkg_dir ( out_dir : & Path ) -> Result < ( ) , failure :: Error > { let _ = fs :: remove_dir_all ( & out_dir ) ; // Clean up any existing directory and ignore errors fs :: create_dir_all ( & out_dir ) ? ; fs :: write ( out_dir . join ( " " ) , " " ) ? ; Ok ( ( ) ) }
Construct our `pkg` directory in the crate.
Construct our ` pkg ` directory in the crate .
out_dir
&Path