mataroa-cli 0.1.2

Unofficial CLI for mataroa.blog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use vergen::EmitBuilder;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    EmitBuilder::builder()
        .git_sha(true)
        .git_commit_timestamp()
        .build_timestamp()
        .cargo_target_triple()
        .rustc_semver()
        .rustc_channel()
        .rustc_host_triple()
        .emit()?;
    let cargo_profile = std::env::var("PROFILE").unwrap();
    println!("cargo:rustc-env=VERGEN_CARGO_PROFILE={cargo_profile}");
    Ok(())
}