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

Remove rerun-if-env-changed #6

Merged
merged 2 commits into from
Aug 15, 2023
Merged

Conversation

rukai
Copy link
Member

@rukai rukai commented Aug 14, 2023

As documented here: rust-lang/cargo#12482
We should not be using rerun-if-env-changed here.

It causes needless rebuilds when running cargo build from within our binary and that happens within tokio-bin-process's BinProcess::start_crate_name

However we cannot have no rerun clauses as that causes cargo to rebuild every time.
So instead we do the documented workaround of adding rerun-if-changed=build.rs: https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorerun-if-changedpath

@rukai rukai merged commit e96c97e into shotover:main Aug 15, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants