-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
82 lines (66 loc) · 2.35 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# This was written for nushell version 0.100.0
set shell := ["nu", "-c"]
export RUST_BACKTRACE := "1"
export MIRIFLAGS := "-Zmiri-strict-provenance"
default:
@just --list
pre-release:
just spellcheck
just doc
just check
cargo test --all-features
cargo miri test --all-features
cargo +stable semver-checks
check:
just check-fmt
just check-clippy
just check-nostd
just check-msrv
just check-fallibility
check-fmt:
cargo fmt --check
cd crates/fuzzing-support; cargo fmt --check
cd crates/inspect-asm; cargo fmt --check
cd crates/test-fallibility; cargo fmt --check
cd fuzz; cargo fmt --check
check-clippy:
cargo clippy --tests --all-features
cargo clippy --no-default-features
cargo clippy --tests --no-default-features --features alloc,panic-on-alloc
cd crates/fuzzing-support; cargo clippy --tests
cd crates/inspect-asm; cargo clippy --tests
cd crates/test-fallibility; cargo clippy --tests
cd fuzz; cargo clippy
check-nostd:
cd crates/test-fallibility; cargo check
check-msrv:
cargo ('+' + (open Cargo.toml).package.rust-version) check --no-default-features
cargo ('+' + (open Cargo.toml).package.rust-version) check --features alloc,panic-on-alloc,serde,zerocopy
cargo ('+' + (open Cargo.toml).package.rust-version) check --features std,panic-on-alloc,serde,zerocopy
check-fallibility:
@ just crates/test-fallibility/test
test:
cargo test
cargo test --all-features
fmt:
cargo fmt
cd crates/fuzzing-support; cargo fmt
cd crates/inspect-asm; cargo fmt
cd crates/test-fallibility; cargo fmt
cd fuzz; cargo fmt
spellcheck:
# https://www.npmjs.com/package/cspell
cspell lint --gitignore "**/*.{rs,md,toml}" --exclude src/tests/from_std
doc *args:
cargo test --package bump-scope --lib --all-features -- insert_feature_docs --exact --ignored
cargo fmt
@ just doc-rustdoc {{args}}
@# https://github.com/orium/cargo-rdme
@# TODO(blocked): stop stripping links when <https://github.com/orium/cargo-rdme/pull/236> is merged
cargo rdme --force --intralinks-strip-links
doc-rustdoc *args:
cargo rustdoc {{args}} --all-features -- --cfg docsrs -Z unstable-options --generate-link-to-definition
doc-rustdoc-priv *args:
cargo rustdoc {{args}} --all-features -- --cfg docsrs -Z unstable-options --generate-link-to-definition --document-private-items
inspect-asm *args:
just crates/inspect-asm/inspect-asm {{args}}