forked from ferrilab/bitvec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
71 lines (57 loc) · 2 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
################################################################################
# Justfile #
# #
# Set of routines to execute for development work. As of 2019-05-01, `just` #
# does not work on Windows. #
################################################################################
# Builds the library.
build:
cargo build --no-default-features
cargo build --no-default-features --features alloc
cargo build --all-features
cargo build --all-features --example sieve
cargo build --all-features --example tour
# Checks the library for syntax and HIR errors.
check:
cargo check --no-default-features
cargo check --no-default-features --features alloc
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 --no-default-features --features alloc
cargo clippy --all-features
# Continually runs some recipe from this file.
loop action:
cargo watch -s "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 lint
cargo test --no-default-features
cargo test --all-features
cargo run --all-features --example ipv4
cargo run --all-features --example sieve
cargo run --all-features --example tour