12 lines
253 B
Rust
12 lines
253 B
Rust
#[cfg(target_os = "windows")]
|
|
extern crate winres;
|
|
|
|
#[cfg(target_os = "windows")]
|
|
fn main() {
|
|
let mut res = winres::WindowsResource::new();
|
|
res.set_icon("icon.ico");
|
|
res.compile().unwrap();
|
|
}
|
|
|
|
#[cfg(not(target_os = "windows"))]
|
|
fn main() {}
|