Documentation
1
2
3
4
5
6
7
fn main() {
    if cfg!(target_os = "windows") {
        let mut res = winres::WindowsResource::new();
        res.set_icon("res/daemon.ico");
        res.compile().unwrap();
    }
}