Skip to content

Should cargo package check for new directories? #6931

Closed
@ExpHP

Description

@ExpHP

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions