set dotenv-load

export EDITOR := 'nvim'

alias f := fmt
alias r := run

default:
  just --list

ci: clippy fmt-check forbid

check:
 cargo check

clippy:
  cargo clippy --all-targets --all-features

run:
	cargo run

fmt:
	cargo +nightly fmt

fmt-check:
	cargo fmt --all -- --check

forbid:
	./bin/forbid

test *args:
	cargo test --all-features -- {{args}}

watch +args='ltest':
	cargo watch --clear --exec "{{args}}"
