# Build both binaries with their required feature sets.
build: build-openlatch build-openlatch-hook
# Build the full CLI with the dependency versions pinned in Cargo.lock.
build-openlatch:
cargo build --bin openlatch --features full-cli --locked
# Build the lean hook without enabling the package's default features.
build-openlatch-hook:
cargo build --bin openlatch-hook --no-default-features --locked
# Build and install the CLI into Cargo's install directory (normally ~/.cargo/bin).
install:
cargo install --path . --bin openlatch --features full-cli --locked