Skip to content

Cargo does not track env!("FOO") for rebuilding #3434

@Mark-Simulacrum

Description

@Mark-Simulacrum

Given the code below, I would expect Cargo to rebuild the crate when FOO changes, but this currently does not happen. I don't know if Cargo currently has enough information to handle this, though.

fn foo() -> &'static str {
    env!("FOO")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions