lockzippy 0.0.1

Pure-Rust AES-256 decryptor for 7z archives, part of the 8z umbrella
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
# Pre-commit hook — auto-installed by build.rs on every cargo build.
set -euo pipefail

changed_rs=$(git diff --cached --name-only --diff-filter=ACM | grep '\.rs$' || true)

if [ -n "$changed_rs" ]; then
    cargo fmt --check 2>&1 \
        || { echo "Run 'cargo fmt' then re-stage."; exit 1; }

    cargo clippy --all-targets -- -D warnings 2>&1 \
        || { echo "Fix clippy warnings before committing."; exit 1; }
fi