cargo-version-info 1.0.21

Cargo subcommand for unified version management across CI/CD, Rust code, and shell scripts
Documentation
1
2
3
4
5
6
7
8
9
10
//! Install development hooks only from the owning checkout.

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");
}