Update: 将子项目从 submodule 转为完整内容
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用 - 添加所有子项目的完整源代码 - 保留原始 .git 为 .git.bak 备份
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fn main() {
|
||||
// `channel::channel()` bakes `NOMI_CHANNEL` into this crate via
|
||||
// `option_env!`. Cargo does not track env vars read by `option_env!`, so
|
||||
// without this a channel switch (stable ⇄ dev) would NOT recompile and the
|
||||
// old channel would persist until a manual `cargo clean`. Telling cargo to
|
||||
// rerun this build script when the var changes marks the crate dirty and
|
||||
// forces the recompile that picks up the new channel.
|
||||
println!("cargo:rerun-if-env-changed=NOMI_CHANNEL");
|
||||
}
|
||||
Reference in New Issue
Block a user