datetag 0.2.0

datetag is a simple command-line application to generate and manage date tags (e.g. 20240427)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use {
    std::{env, io},
    winres::WindowsResource,
};

fn main() -> io::Result<()> {
    if env::var_os("CARGO_CFG_WINDOWS").is_some() {
        WindowsResource::new()
            // This path can be absolute, or relative to your crate root.
            .set_icon("resources/icon.ico")
            .compile()?;
    }
    Ok(())
}