-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjustfile
63 lines (48 loc) · 1.09 KB
/
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
55
56
57
58
59
60
61
62
63
# SPDX-FileCopyrightText: 2022 Kevin Matthes
# SPDX-FileCopyrightText: 2022 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 benchmarks
@bench:
cargo +nightly bench
# 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 +nightly clippy --fix --allow-dirty --allow-staged -- -D warnings
# Build the package documentation
@doc $RUSTDOCFLAGS="--cfg docsrs":
cargo +nightly doc --all-features
# 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 }}