-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support adding new file after compilation #22
Comments
I think if you add a build.rs containing the following (where fn main() {
println!("cargo:rerun-if-changed=path/to/dir");
} |
Right, this is also what I got after searching for a while. I can confirm it works well. It would be nice to call this out in the example in the README.md. Here is a PR: #23. i.e.
|
See discussion in dtolnay#22.
I noticed that if I add a new file after a build, the new file would not be included in the next run. I have to manually clean the build cache via
cargo clean
. Is there a better/automatic way of doing this?The text was updated successfully, but these errors were encountered: