#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
# Copyright (C) 2022 Shun Sakai
#
alias all := default
alias lint := clippy
# Run default recipe
default: build
# Build a package
@build:
cargo build
# Remove generated artifacts
@clean:
cargo clean
# Check a package
@check:
cargo check
# Run tests
@test:
cargo test
# Run the formatter
@fmt:
cargo fmt
# Run the linter
@clippy:
cargo clippy -- -D warnings
# Run the linter for GitHub Actions workflow files
@lint-github-actions:
actionlint
# Run the formatter for the README
@fmt-readme:
npx prettier -w README.md