Skip to content

Warn when a file is included from outside the cargo workspace #17482

Description

@GuillaumeGomez

What it does

Checks that all include[_*]?d files are within the cargo workspace.

Advantage

No release with missing files.

Drawbacks

I'm not sure if cargo can have this information and rustc doesn't have enough information either.

Example

fn main() {
    let x = include_str!("/etc/passwd");
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-new-lintArea: new lintS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions