happy_chart_rs 1.17.2

A subjective day quality charting program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::error::Error;
use vergen::EmitBuilder;

#[cfg(target_os = "windows")]
use winres::WindowsResource;

fn main() -> Result<(), Box<dyn Error>> {
    EmitBuilder::builder().all_build().all_git().emit()?;
    #[cfg(target_os = "windows")] // conditionally set icon of program on windows
    {
        WindowsResource::new()
            .set_icon("./assets/program_icon_gimp.ico")
            .compile()?;
    }
    Ok(())
}