Skip to content

Forbid setting RUSTC_BOOTSTRAP from a build script #7088

Closed
@matklad

Description

@matklad

Currently, crates can set environmental variables, including RUSTC_BOOTSTRAP, from a build.rs file, thus subverting current stability guarantees. Cargo and, if that's feasible, crates.io additionally should forbid doing so.

This was originally discussed in #6608 and #6627, both of which are closed, so I thought it would be helpful to create this issue!

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