Skip to content

Proper way to use rerun-if-env-changed? #5630

@eberkund

Description

@eberkund

What the proper way of using rerun-if-env-changed? I am using a library where I am trying to pass in an env var from my application build.rs using cargo:rustc-env but the problem is the library which depends on the env var fails before it can be rerun. If set the env var prior or if I change the code around in the library then it can compile fine. Just not sure what the intended use case is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions