fn main() { let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); let lib_path = std::path::Path::new(&manifest_dir) .join("..\\..\\lib\\windows\\amd64"); println!("cargo:rustc-link-search=native={}", lib_path.display()); // Embed a Common-Controls v6 manifest on Windows so transitive imports // pulled in by tray-icon / winit (TaskDialogIndirect, themed controls, // per-monitor DPI) resolve against comctl32 v6. Without this the exe // crashes at load with "TaskDialogIndirect entry point not found". #[cfg(target_os = "windows")] { println!("cargo:rerun-if-changed=app.manifest"); println!("cargo:rerun-if-changed=app.manifest.rc"); let _ = embed_resource::compile("app.manifest.rc", embed_resource::NONE); } }