Skip to content

Commit

Permalink
justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
thor314 committed Aug 6, 2024
1 parent 0fc7561 commit 85be486
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .justfile
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

0 comments on commit 85be486

Please sign in to comment.