Skip to content

rust_test() doesn't set OUT_DIR #3744

@rejuvenile

Description

@rejuvenile

My use case is calling a Rust macro in my test which expects to find generated code relative to the OUT_DIR compilation-time environment variable. It's likely that rust_binary() doesn't set this either; I haven't checked because I use a genrule to create the output files.

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