Skip to content

Missing build.rs for cargo:rerun-if-env-changed? #3

Open
@xobs

Description

@xobs

According to a post on Reddit, it looks like this crate doesn't get rebuilt when environment variables change. For example, changing the CPU frequency doesn't cause a rebuild of the consts in this crate.

There should be a build.rs added that prints out any environment variables that should cause a rebuild. For example:

build.rs:

fn main() {
    println!("cargo:rerun-if-env-changed=AVR_CPU_FREQUENCY_HZ");
}

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