-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
31 lines (22 loc) · 827 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
NAME := "temporal-rust-worker"
ORG := "ekalavya-dev"
VERSION := `git rev-parse HEAD`
SEMVER_VERSION := `grep version Cargo.toml | awk -F"\"" '{print $2}' | head -n 1`
default:
@just --list --unsorted --color=always | rg -v " default"
check:
@cargo check
fmt-check:
@cargo +nightly fmt --check
fmt:
@cargo +nightly fmt
lint:
@cargo clippy --all-targets --all-features -- --no-deps -D warnings
lint-fix:
@cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged -- --no-deps -D warnings
lint-pedantic:
@cargo clippy --all-targets --all-features -- --no-deps -W clippy::pedantic -D warnings
lint-pedantic-fix:
@cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged -- --no-deps -W clippy::pedantic -D warnings
test:
@cargo test --all-targets --all-features