pub fn prepare_init<'a, 'cfg>(cx: &mut Context<'a, 'cfg>, unit: &Unit<'a>) -> CargoResult<()> {
    let new1 = cx.files().fingerprint_dir(unit);

    if fs::metadata(&new1).is_err() {
        fs::create_dir(&new1)?;
    }

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