Browse Source

remove non-existent cargo rerun check (#3412)

chip 3 years ago
parent
commit
65287cd614
2 changed files with 5 additions and 1 deletions
  1. 5 0
      .changes/always-rebuilding.md
  2. 0 1
      core/tauri-build/src/lib.rs

+ 5 - 0
.changes/always-rebuilding.md

@@ -0,0 +1,5 @@
+---
+"tauri-build": patch
+---
+
+Remove `cargo:rerun-if-changed` check for non-existent file that caused projects to _always_ rebuild.

+ 0 - 1
core/tauri-build/src/lib.rs

@@ -152,7 +152,6 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
   use cargo_toml::{Dependency, Manifest};
   use tauri_utils::config::{Config, TauriConfig};
 
-  println!("cargo:rerun-if-changed=src/Cargo.toml");
   println!("cargo:rerun-if-changed=tauri.conf.json");
   #[cfg(feature = "config-json5")]
   println!("cargo:rerun-if-changed=tauri.conf.json5");