-
Notifications
You must be signed in to change notification settings - Fork 0
/
.justfile
50 lines (36 loc) · 914 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
40
41
42
43
44
45
46
47
48
49
50
# A configuration file for `just`, a command runner and successor to `make`
# https://github.com/casey/just/tree/master
#
# examples:
# https://github.com/casey/just/blob/master/examples/pre-commit.just
# https://github.com/casey/just/blob/master/examples/kitchen-sink.just
# use fish shell
# set shell := ["fish", "-c"]
# ignore comments in the command area
set ignore-comments := true
# load .env vars
# set dotenv-load := true
# set custom env vars
export RUST_LOG := "info"
# export RUST_BACKTRACE := "1"
@just:
just --list
build:
cargo build -r
check:
cargo check --all --tests
cargo fmt --all --check
format:
cargo fmt --all
fix:
cargo clippy --all --tests --fix
lint:
cargo clippy --all --tests -- -D warnings
run:
cargo run -r
test:
cargo test --all -- --nocapture
@versions:
rustc --version
cargo fmt -- --version
cargo clippy -- --version