-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
61 lines (41 loc) · 1.6 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
default:
just --list
@check:
cargo check
@server:
cargo run -- server
@client1:
cargo run -- client --name Ig
@client1-with-log-file:
cargo run -- --log './log/clientIg.log' client --name Ig
@client2:
cargo run -- client --name Ks
@client2-with-log-file:
cargo run -- --log './log/clientKs.log' client --name Ks
@server-tokio-console:
KOBULETI_LOG=trace RUST_BACKTRACE=1 RUSTFLAGS="--cfg tokio_unstable" cargo run --features tokio-console -- server
# used for avoid recompile dependencies
@client1-tokio-console:
KOBULETI_LOG=trace RUST_BACKTRACE=1 RUSTFLAGS="--cfg tokio_unstable" cargo run --features tokio-console -- client --name Ig
@client2-tokio-console:
KOBULETI_LOG=trace RUST_BACKTRACE=1 RUSTFLAGS="--cfg tokio_unstable" cargo run --features tokio-console -- client --name Ks
# run unit tests
@test:
cargo test --workspace -- --skip show_game_layout --skip show_roles_layout
@test-with-output:
RUST_BACKTRACE=1 cargo test --workspace -- --nocapture --skip show_roles_layout --skip show_game_layout
# run unit tests (in release mode)
@test-release:
cargo test --workspace --release --verbose -- --skip show_game_layout --skip show_roles_layout
show-game-layout:
cargo test show_game_layout
show-roles-layout:
cargo test show_roles_layout
@update-deps:
cargo update
command -v cargo-outdated >/dev/null || (echo "cargo-outdated not installed" && exit 1)
cargo outdated
# list unused dependencies
@unused-deps:
command -v cargo-udeps >/dev/null || (echo "cargo-udeps not installed" && exit 1)
cargo +nightly udeps