Closed
Description
In trying to work around a problem involving excludes I noticed that cargo package
does not complain about a build script that creates directories:
build.rs
fn main() {
// 'cargo package' is designed to fail if you do this:
// let _ = std::fs::File::create("lol.txt");
// but it's okay with this:
let _ = std::fs::create_dir("lol");
}
Is this a feature or a bug?
Notes
cargo 1.36.0-nightly (759b616 2019-05-06)