|
|
|
@ -37,7 +37,6 @@ fn find_manifest_from_cwd() -> Result<PathBuf, failure::Error> { |
|
|
|
|
|
|
|
|
|
/// 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(()) |
|
|
|
|