-
Notifications
You must be signed in to change notification settings - Fork 7
/
justfile
39 lines (31 loc) · 971 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
29
30
31
32
33
34
35
36
37
38
39
# determine the current Minimum Supported Rust Version for sic
msrv:
cargo install cargo-msrv
cargo msrv --output-format json -- cargo check --all-features
# format all workspace packages
fmt:
cargo fmt --all
# run linter on all workspace packages
lint:
cargo clippy --all-targets --all-features -- -D warnings
# run tests in workspace
test:
cargo test --all-features --all
deny:
cargo deny --all-features check
# general check to run prior to committing source code
pre-commit:
just fmt
just lint
just test
just deny
# package a release for the current platform
pack-release:
cargo run -p pack-release
publish-workspace new_version:
cargo install cargo-publish-workspace
cargo publish-workspace --new-version {{new_version}}
# publish the workspace with a new workspace version, and package the result for the current platform
publish new_version:
just publish-workspace {{new_version}}
just pack-release