itmettkeDE / cargo-patch

Cargo Subcommand for patching dependencies using patch files
MIT License
65 stars 9 forks source link

Build.rs keep rerun #68

Open FancyQian opened 3 months ago

FancyQian commented 3 months ago

I found the Build.rs keep rerun, it will make build slow.

fn main() {
    println!("cargo:rerun-if-changed=Cargo.toml");
    println!("cargo:rerun-if-changed=patches/");
    cargo_patch::patch().expect("Failed while patching");
}
FancyQian commented 3 months ago
   Compiling serde_json v1.0.119 (/Users/fancy/xxx/target/patch/serde_json-1.0.119)
   Compiling crates-io v0.37.0
   Compiling rustfix v0.6.1
   Compiling pasetors v0.6.8