rsecure 0.3.5

A simple file encryption and decryption tool using AES-GCM.
SHELL:=/bin/sh

CARGO := cargo

.PHONY: all

help: ## this help
	@awk 'BEGIN {FS = ":.*?## ";  printf "Usage:\n  make \033[36m<target> \033[0m\n\nTargets:\n"} /^[a-zA-Z0-9_-]+:.*?## / {gsub("\\\\n",sprintf("\n%22c",""), $$2);printf "  \033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)

test: ## Run tests with nextest
	$(CARGO) nextest run

test-verbose: ## Run tests and show output
	$(CARGO) test -- --nocapture

fmt: ## Format code with rustfmt
	$(CARGO) fmt --all --

lint: ## Lint code with clippy
	$(CARGO) clippy -- -D warnings

build: ## Build
	$(CARGO) build

release: ## Build release version
	$(CARGO) build --release

clean: ## Clean build artifacts
	$(CARGO) clean

ci: fmt lint test ## Run all checks for CI

goreleaser: ## Generate binaries using goreleaser (brew install goreleaser and brew install zig)
	# Needs cargo install cargo-zigbuild
	goreleaser release --snapshot --clean --skip sign