Files
MyAiDesk/nomifun-tauri/crates/backend/nomifun-common/build.rs
T
freedak f7a720204a Update: 将子项目从 submodule 转为完整内容
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用
- 添加所有子项目的完整源代码
- 保留原始 .git 为 .git.bak 备份
2026-07-04 19:20:46 +08:00

10 lines
517 B
Rust

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");
}