浏览代码

remove non-existent cargo rerun check (#3412)

chip 3 年之前
父节点
当前提交
65287cd614
共有 2 个文件被更改,包括 5 次插入1 次删除
  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");