-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
68 lines (48 loc) · 1.17 KB
/
justfile
File metadata and controls
68 lines (48 loc) · 1.17 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
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
export RUSTFLAGS := "-D warnings"
export RUSTDOCFLAGS := "-D rustdoc::broken-intra-doc-links"
export RUST_LOG := "info,homework=debug,rama_http=debug,rama_http_core=info"
fmt *ARGS:
cargo fmt --all {{ARGS}}
sort:
@cargo install cargo-sort
cargo sort --grouped
lint: fmt sort
check:
cargo check --all-targets --all-features
clippy:
cargo clippy --all-targets --all-features
clippy-fix *ARGS:
cargo clippy --all-targets --all-features --fix {{ARGS}}
doc:
cargo doc --all-features --no-deps
test:
cargo test --all-features
qq: lint check clippy doc
qa: qq test
run *ARGS:
cargo run -- \
--http 127.0.0.1:8080 \
{{ARGS}}
watch-run *ARGS:
cargo watch -x \
'run -- --http 127.0.0.1:8080 {{ARGS}}'
docker-build:
docker build -t local/homework .
docker-run *ARGS:
docker run \
-p 8080:8080 \
--rm local/homework:latest {{ARGS}}
docker *ARGS:
just docker-build
just docker-run {{ARGS}}
update-deps:
cargo upgrades
cargo update
detect-unused-deps:
@cargo install cargo-machete
cargo machete --skip-target-dir
deploy:
fly deploy
ssh:
fly ssh console