-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJustfile
49 lines (39 loc) · 1.07 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
_default:
@just --list -u
alias f := fix
alias l := lint
# Install tools needed for development. Make sure cargo-binstall is installed first.
init:
cargo binstall cargo-shear taplo-cli typos-cli -y
# Run Oxbuild (dev build, not optimized)
oxbuild *ARGS:
cargo oxbuild {{ARGS}}
# Alias for `cargo build`
build:
cargo build
# Create a release build and copy it to ~/.bin
oxbuild-local:
cargo build --release --bin oxbuild
rm ~/.bin/oxbuild
cp target/release/oxbuild ~/.bin/oxbuild
# Alias for `cargo test`
test:
cargo test
# Apply formatting fixes
fmt:
@cargo fmt --all
@taplo fmt
lint:
cargo clippy --no-deps --all-targets --all-features -- -D warnings
# Apply all lint/format auto fixes. Stage all changes first.
fix:
cargo clippy --no-deps --all-targets --all-features --fix --allow-staged
just fmt
typos -w
git status
# Make a release. `semver_kind` is major/minor/patch
release semver_kind:
# bail on uncommitted changes
git diff --exit-code --name-only
cargo ck
cargo release {{semver_kind}} --execute