Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rerun compilation if env changed #5

Closed
segeljakt opened this issue Jul 12, 2020 · 1 comment
Closed

Rerun compilation if env changed #5

segeljakt opened this issue Jul 12, 2020 · 1 comment

Comments

@segeljakt
Copy link

segeljakt commented Jul 12, 2020

Hi, thank you for this cool crate. It works well but I have one problem. Cargo seems to cache compilation and not recompile when the environment variables change. Is it possible to add some similar functionality to:

// build.rs
println!("cargo:rerun-if-env-changed=FOO");
@EkardNT
Copy link
Owner

EkardNT commented Nov 25, 2021

I've published a new 0.1.3 version to crates.io which has a tracked feature you can use to achieve this. This will be a nightly-only feature until rust-lang/rust#74690 is merged.

@EkardNT EkardNT closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants