-
Notifications
You must be signed in to change notification settings - Fork 7
/
Justfile
57 lines (44 loc) · 1.41 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
################################################################################
# Justfile #
# #
# Set of routines to execute for development work. #
################################################################################
# Builds the library.
build:
cargo build --no-default-features
cargo build --all-features
# Checks the library for syntax and HIR errors.
check:
cargo clippy --no-default-features
cargo clippy --all-features
# Runs all of the recipes necessary for pre-publish.
checkout: format check build doc test package
# Continually runs the development routines.
ci:
just loop dev
# Removes all build artifacts.
clean:
cargo clean
# Runs the development routines.
dev: format doc test
# Builds the crate documentation.
doc:
cargo doc --all-features --document-private-items
# Runs the formatter on all Rust files.
format:
cargo +nightly fmt
# Continually runs some recipe from this file.
loop action:
watchexec -- "just {{action}}"
miri:
cargo +nightly miri test
# Packages the crate in preparation for publishing on crates.io
package:
cargo package --allow-dirty
# Publishes the crate to crates.io
publish: checkout
cargo publish
# Runs the test suites.
test: check
cargo test --no-default-features
cargo test --all-features