-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 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 | ||
|
||
# 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 |