-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
56 lines (46 loc) · 1.59 KB
/
Copy pathjustfile
File metadata and controls
56 lines (46 loc) · 1.59 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
default:
@just --list
generate-all:
just generate-detector
just generate-frontend
just generate-backend
# The purpose of these targets is to make it easy to make changes to the templates and then
# regenerate the generated projects and view the expected changes in a git diff.
generate-detector:
rm -rv detector-generated | true
cargo generate --path ./detector \
--name detector-generated \
--define description="An example generated using the detector template" \
--define github-username="hummanta" \
--define language="Toy" \
--define extension="toy"
generate-frontend:
rm -rv frontend-generated | true
cargo generate --path ./frontend \
--name frontend-generated \
--define description="An example generated using the frontend template" \
--define github-username="hummanta" \
--define language="Toy" \
--define extension="toy"
generate-backend:
rm -rv backend-generated | true
cargo generate --path ./backend \
--name backend-generated \
--define description="An example generated using the backend template" \
--define github-username="hummanta"
build:
RUST_BACKTRACE=1 cargo build --workspace --all-features --tests --bins --benches
# Linting
clippy:
cargo clippy --workspace --all-features --tests --bins --benches -- -D warnings
# Check formatting
fmt:
cargo +nightly fmt --all -- --check
# Test the project
test:
RUST_BACKTRACE=1 cargo test --workspace --all-features --verbose
# Run all the checks
check:
just fmt
just clippy
just test