summaryrefslogtreecommitdiffstats
path: root/build/main.rs
blob: 416d90d53bac0d3896e90a2cfd31812247d10c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "application")]
mod application;
mod util;

fn main() -> anyhow::Result<()> {
    // only watch manually-designated files
    // see: https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed
    println!("cargo:rerun-if-changed=build/");

    #[cfg(feature = "application")]
    application::gen_man_and_comp()?;

    Ok(())
}