38 lines
940 B
Makefile
38 lines
940 B
Makefile
# yo idk how to use this
|
|
|
|
build *args:
|
|
cargo build {{ args }}
|
|
build-codexport *args:
|
|
cargo build -p codexport {{ args }}
|
|
|
|
bc *args: (build-codexport args)
|
|
b *args: (build-codexport args) (build args)
|
|
br: (b "--release")
|
|
|
|
test *args:
|
|
cargo test {{ args }}
|
|
test-codexport *args:
|
|
cargo test -p codexport {{ args }}
|
|
|
|
tc *args: (test-codexport args)
|
|
t *args: (test-codexport args) (test args)
|
|
tr: (t "--release")
|
|
|
|
fmt all="--all":
|
|
cargo fmt {{ all }}
|
|
fmt-codexport all="--all":
|
|
cargo fmt -p codexport {{ all }}
|
|
clippy all="--workspace --all-targets --all-features" *args:
|
|
cargo clippy {{ all }} {{ args }}
|
|
clippy-codexport all="--workspace --all-targets --all-features" *args:
|
|
cargo clippy -p codexport {{ all }} {{ args }}
|
|
lint *args: (clippy-codexport args) (clippy args)
|
|
format: fmt-codexport fmt
|
|
|
|
f release="": (lint release) format
|
|
fr: (f "--release")
|
|
|
|
r *args:
|
|
cargo run {{ args }}
|
|
rr: (r "--release")
|