-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
54 lines (41 loc) · 891 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# SPDX-FileCopyrightText: 2025 Shun Sakai
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
alias lint := clippy
# Run default recipe
_default:
just -l
# 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 formatter with options
fmt-with-options:
cargo +nightly fmt
# Run the linter
clippy:
cargo clippy -- -D warnings
# Apply lint suggestions
clippy-fix:
cargo clippy --fix --allow-dirty --allow-staged -- -D warnings
# Run the linter for GitHub Actions workflow files
lint-github-actions:
actionlint -verbose
# Run the formatter for the README
fmt-readme:
npx prettier -w README.md
# Increment the version
bump part:
bump-my-version bump {{ part }}
cargo set-version --bump {{ part }}