File size: 435 Bytes
fceb3b2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | fn main() {
// Only embed resources when the feature is enabled
if std::env::var("CARGO_FEATURE_EMBED_RESOURCES").is_ok() {
#[cfg(target_os = "windows")]
{
let mut res = winres::WindowsResource::new();
res.set_manifest_file("manifest.xml");
if let Err(e) = res.compile() {
eprintln!("Warning: Failed to embed manifest: {}", e);
}
}
}
} |