set-git-hooks-dir 1.0.1

Deadly simple Git hooks directory setup tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(feature = "setup-on-build")]
#[path = "src/installer.rs"]
#[allow(dead_code)]
mod installer;

fn main() {
    #[cfg(all(feature = "setup-on-build", debug_assertions))]
    if let Err(err) = installer::setup(".git-hooks") {
        println!("cargo::warning=Git hooks directory was not set: {}", err);
    }
}