This repository was archived by the owner on May 12, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
84 lines (71 loc) · 2.01 KB
/
Copy pathjustfile
File metadata and controls
84 lines (71 loc) · 2.01 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# https://just.systems
# Some recipes are duplicated as they use the 'fast' profile which doesn't work under Windows due to linker limits.
# Run (almost) every check the CI will run
ci: format features lint typos dependencies commits test
# Check if code is formatted correctly
format:
cargo fmt --check
# Run more advanced CI tests on feature sets
[working-directory('tools/ci')]
features:
cargo run all
# Run unit tests
[linux, macos]
test:
cargo nextest run --all-features --cargo-profile=fast
cargo nextest run --all-features --cargo-profile=fast --benches
cargo test --workspace --profile=fast --doc
[windows]
test:
cargo nextest run --all-features
cargo nextest run --all-features --benches
cargo test --workspace --doc
# Run linters
[linux, macos]
lint:
cargo check --profile=fast
cargo clippy --all-targets --all-features -- -D warnings
[windows]
lint:
cargo check
cargo clippy --all-targets --all-features -- -D warnings
# Check for typos
typos:
typos
# Check dependencies and licensing
dependencies:
cargo machete
cargo deny check
# Check commit messages
commits:
committed origin/master..HEAD
[linux, macos]
[working-directory: 'docs']
docs:
mdbook build
cargo doc --profile=fast --locked --workspace --all-features --document-private-items --no-deps
[windows]
[working-directory: 'docs']
docs:
mdbook build
cargo doc --locked --workspace --all-features --document-private-items --no-deps
# Attempt an automated fix of various lint errors
fix:
cargo clippy --fix --allow-dirty
cargo fmt
typos -w
# Run the editor in development mode
run:
cargo run -p drs-editor --features=drs-editor/dev
# Run the CLI in development mode
cli:
cargo run -p drs-cli --features=drs-cli/dev
# Install all tools used for this repo's CI and other tools
setup:
cargo install cargo-deny
cargo install typos-cli
cargo install committed
cargo install git-cliff
cargo install cargo-nextest
cargo install mdbook
cargo fetch --locked