-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
28 lines (22 loc) · 928 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
alias f := fmt
alias d := doc
alias t := test
check toolchain='+stable': fmt
cargo {{toolchain}} clippy
cargo {{toolchain}} clippy --package wasm2rs-rt --no-default-features --features alloc,merged
cargo {{toolchain}} clippy --package wasm2rs-rt --no-default-features --features merged
fmt toolchain='+stable':
cargo {{toolchain}} fmt
test toolchain='+stable':
cargo {{toolchain}} test --workspace
# Quickly runs all tests; requires nextest.
test_fast toolchain='+stable':
cargo {{toolchain}} nextest run --workspace
# Runs all tests under the Miri interpreter; requires Rust nightly and nextest.
test_miri:
# miri - https://github.com/rust-lang/miri
# nextest - https://github.com/nextest-rs/nextest
cargo +nightly miri nextest run --workspace
# Generate documentation; requires Rust nightly.
doc *FLAGS='--all-features':
RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc {{FLAGS}}