Skip to content

Automatically rebuild if Cargo.toml or git changesΒ #19

Open
@tylerhawkes

Description

@tylerhawkes

Of all the things that are recorded by built, Cargo.toml and git can change without triggering a rebuild the next time cargo build is run. If those options are enabled, built should emit cargo:rerun-if-changed=<file> for the Cargo.toml and any files in .git. That way cargo can automatically determine if the build.sh script needs to rerun or not.
I ran into this issue trying to do a manual release (we're working on CI) of an internal project and had to manually change the build.rs file to get cargo to rerun built and get a new git hash.

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