-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
59 lines (46 loc) · 1.53 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
################################################################################
# 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 check --no-default-features
cargo check --all-features
# Runs all of the recipes necessary for pre-publish.
checkout: format check lint 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 lint 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 -- --config-path rustfmt-nightly.toml
# Runs the linter.
lint: check
cargo clippy --no-default-features
cargo clippy --all-features
# Continually runs some recipe from this file.
loop action:
watchexec -- "just {{action}}"
# 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 lint
cargo test --no-default-features
cargo test --all-features