scratch 1.0.7

Compile-time temporary directory shared by multiple crates and erased by `cargo clean`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
#![cfg_attr(
    feature = "cargo-clippy",
    allow(let_underscore_drop, let_underscore_untyped)
)]

use std::{env, fs};

fn main() {
    let out_dir = env::var_os("OUT_DIR").unwrap();
    let _ = fs::remove_dir_all(&out_dir);
    let _ = fs::create_dir(&out_dir);
}