pub fn prepare_init(cx: &mut Context, unit: &Unit) -> CargoResult<()> {
    let new1 = dir(cx, unit);
    let new2 = new1.clone();

    if fs::metadata(&new1).is_err() {
        try!(fs::create_dir(&new1));
    }
    if fs::metadata(&new2).is_err() {
        try!(fs::create_dir(&new2));
    }
    Ok(())
}
/// Prepare work for when a package starts to build
Prepare work for when a package starts to build
Prepare work for when a package starts to build
pub fn prepare_init(cx: &mut Context, unit: &Unit) -> CargoResult<()> {
    let new1 = dir(cx, unit);
    let new2 = new1.clone();
    if fs::metadata(&new1).is_err() {
        try!(fs::create_dir(&new1));
    }
    if fs::metadata(&new2).is_err() {
        try!(fs::create_dir(&new2));
    }
    Ok(())
}
pub fn prepare_init ( cx : & mut Context , unit : & Unit ) -> CargoResult < ( ) > { let new1 = dir ( cx , unit ) ; let new2 = new1 . clone ( ) ; if fs :: metadata ( & new1 ) . is_err ( ) { try ! ( fs create_dir ( new1 ) ) ; } if fs :: metadata ( & new2 ) . is_err ( ) { try ! ( fs create_dir ( new2 ) ) ; } Ok ( ( ) ) }
Prepare work for when a package starts to build
Prepare work for when a package starts to build
cx
&mut Context
unit
&Unit
cx
&mut Context
unit
&Unit