Skip to content

build-info causes rebuilds when tests are changed #10

@jbellis

Description

@jbellis

The globbing in rebuild_if_project_changes goes over all .rs files in any subdirectory, including tests/ which are separate crates.

In my case, this causes a recompile of the entire project when a test file is changed, turning a 0.3s build into a 30s build.

My first thought was, we could improve this by making it ignore tests/ by default, or just scan src/.

My second thought was, isn't this what cargo does by default? What problem is build-info trying to solve by adding a rerun-if-changed to every file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions