cargo-plugin-utils 0.0.21

Shared utilities for cargo plugins (logger, subprocess handling, common functions)
Documentation
1
2
3
4
5
6
7
8
9
10
//! Build script to install Git hooks via Rhusky.

fn main() {
    rhusky::Rhusky::new()
        .hooks_dir(".githooks")
        .skip_in_env("GITHUB_ACTIONS")
        .with_default_hooks()
        .install_from_build_script(env!("CARGO_MANIFEST_DIR"))
        .expect("failed to install repository Git hooks");
}