Ziya/justfile
2025-07-08 14:57:51 +07:00

59 lines
1.2 KiB
Makefile

# Default recipe to display available commands
default:
@just --list
# Run the application with dev features
run:
cargo run --features dev
# Run the application with prod features
run-prod:
cargo run --features prod
# Build the application with dev features
build:
cargo build --features dev
# Build the application with prod features
build-prod:
cargo build --features prod
# Run tests
test:
cargo test
# Run clippy linter
clippy:
cargo clippy --all-targets --all-features -- -D warnings
# Format code
fmt:
cargo fmt
# Check formatting
fmt-check:
cargo fmt --check
# Run development server with hot reloading using watchexec
dev:
watchexec --clear --stop-timeout=3s -i "./**/target" -w "src" -w "ui" -e "rs,toml,slint" --project-origin "." -r "just run"
# Generate changelog using git-cliff
changelog:
git-cliff -o CHANGELOG.md
# Generate unreleased changelog
changelog-unreleased:
git-cliff --unreleased --tag unreleased -o CHANGELOG.md
# Clean build artifacts
clean:
cargo clean
# Check for security vulnerabilities
audit:
cargo audit
# Install development dependencies
install-deps:
cargo install watchexec-cli git-cliff cargo-audit