From 33f6489e32245b686ab651f9f6160d576da84228 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 12 Mar 2026 00:48:16 +0545 Subject: [PATCH] feat(root): add justfile with cargo script targets Add a Justfile defining tasks for formatting, linting, testing, building, cleaning, and installing lapctl. - New Features: introduce default target to list recipes and provide cargo-like commands - Enhancements: streamline common development workflows - Bug Fixes: none --- justfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..8cff3c0 --- /dev/null +++ b/justfile @@ -0,0 +1,39 @@ +# Default target: list all recipes +default: + @just --list + +# Format the code automatically +fmt: + cargo fmt + +# Check formatting exactly as CI does without changing files +fmt-check: + cargo fmt --all -- --check + +# Check if the code compiles without building an executable +check: + cargo check + +# Run the linter (clippy) to catch common mistakes +lint: + cargo clippy -- -D warnings + +# Run all unit and integration tests (verbose) +test: + cargo test --verbose + +# Build the project in debug mode (verbose) +build: + cargo build --verbose + +# Build the project in release mode (optimized) +release: + cargo build --release + +# Clean the build artifacts +clean: + cargo clean + +# Install lapctl to your local cargo bin directory +install: release + cargo install --path .