-
Notifications
You must be signed in to change notification settings - Fork 2
/
Justfile
36 lines (28 loc) · 886 Bytes
/
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
book-src := justfile_directory() / 'docs' / 'book'
[private]
default:
@just --unsorted --list --list-submodules
# documentation
mod doc 'just/doc.just'
# testing
mod test 'just/test.just'
# checks and lints
mod check 'just/check.just'
# compile and run typst-test
run *args='--release':
cargo run {{ args }}
# run tests and checks similar to CI
ci $RUSTFLAGS='-Dwarnings' $RUSTDOCFLAGS='-Dwarnings':
# FIXME: See https://github.com/rust-lang/rust/issues/128538
# add back doc tests by removing --all-targets
cargo +1.80 test --workspace --all-targets
cargo +1.80 clippy --workspace
cargo +1.80 fmt --all --check
cargo +1.80 doc --workspace --no-deps
# clean all temporary directories and build artifacts
clean:
rm -r target
rm -r {{ book-src / 'build' }}
# install typst-test using cargo
install *args='--force':
cargo install --path crates/typst-test-cli {{ args }}