-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
32 lines (25 loc) · 791 Bytes
/
justfile
File metadata and controls
32 lines (25 loc) · 791 Bytes
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
# Default log level is "error". It can be "error", "info", "debug" or "trace"
default_log := "error"
# Run with debugging information
run log=default_log:
DEFMT_LOG={{log}} cargo run
# Build in debug mode
build:
cargo build
# Flash and run the app in fully optimesed release mode. Note there will be no logging in release mode.
run-release log=default_log:
DEFMT_LOG={{log}} cargo run --release
# Build for release mode
build-release:
cargo build --release #--chip ESP32-C6
# Flash one of the souls listed in the souls.toml file
flash soul:
SOUL_ID={{soul}} cargo flash --release
# Lint and format
precommit:
SOUL_ID=nefario cargo clippy
cargo fmt
cargo sort
# Will auto-fix clippy issues.
fix:
SOUL_ID=nefario cargo clippy --fix --allow-dirty