Skip to content

Expose rustc version to build.rs #2903

@mitsuhiko

Description

@mitsuhiko

Currently the only way to find the rustc version is to invoke rustc. Which is for instance what the rustc_version crate does. It would be great if RUSTC_VERSION or something similar was set automatically so that build scripts could customize what happens based on the version of Rust it compiles with.

See also #4408

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-build-scriptsArea: build.rs scriptsS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions