Repository navigation
Expand file tree
/
Copy pathJustfile
More file actions
69 lines (52 loc) · 1.79 KB
/
Copy pathJustfile
File metadata and controls
69 lines (52 loc) · 1.79 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
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
python := if os() == "windows" { "python" } else { "python3" }
# `[env]` attribute unavailable on just 1.40 packaged with Debian trixie
# (see https://packages.debian.org/trixie/just)
export RUSTDOCFLAGS := "-D warnings"
mod fuzz "fuzz/mod.just"
mod num "pkgs/num/mod.just"
mod p2p_core "pkgs/p2p_core/mod.just"
mod params "pkgs/params/mod.just"
mod pkc "pkgs/pkc/mod.just"
mod pow "pkgs/pow/mod.just"
mod primitives "pkgs/primitives/mod.just"
mod script "pkgs/script/mod.just"
mod types "pkgs/types/mod.just"
import "bazel/mod.just"
each := "cargo hack --workspace --exclude-features default --each-feature"
powerset := "cargo hack --workspace --exclude-features default --feature-powerset"
[private]
default:
@just --list
bench:
cargo bench --workspace --features full
build:
{{ each }} build
comb:
{{ python }} contrib/git_filter.py --fast-fail --env NEXTEST_PROFILE=fail-fast develop HEAD -- just test lint fuzz::test
lint:
{{ python }} maint/lint_all.py --exclude lint_codeql
{{ python }} maint/lint/lint_bazel.py graph
{{ python }} maint/lint/lint_codeql.py check
{{ python }} maint/lint/lint_codeql.py run --lang=rust --with-suite=rust-security-and-quality
[positional-arguments]
[unix]
mutants *args:
cargo mutants "$@"
[windows]
mutants *args:
cargo mutants {{ args }}
sh:
nix develop ./contrib/nix#dev
preview:
{{ python }} docs/build_docs.py preview
test:
{{ powerset }} clippy --all-targets -- -D warnings
{{ each }} nextest run --config-file .cargo/nextest.toml --no-tests=warn
{{ each }} test --doc
cargo doc --workspace --no-deps --features full
{{ each }} test --benches
zbuild *flags:
bazel build {{ flags }} //...
zglock:
bazel mod deps --lockfile_mode=update