| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 | # THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATIONalias b := buildalias c := checkalias t := test[private]default:  @just --list# Execute a partial check (MSRV is not checked)precommit:    @bash misc/scripts/precommit.sh# Format the entire Rust codefmt:	@bash misc/scripts/check-fmt.sh# Check if the Rust code is formattedcheck-fmt:	@bash misc/scripts/check-fmt.sh check# run `cargo build` on everythingbuild *ARGS="--workspace --all-targets":  #!/usr/bin/env bash  set -euo pipefail  if [ ! -f Cargo.toml ]; then    cd {{invocation_directory()}}  fi  cargo build {{ARGS}}# run `cargo check` on everythingcheck *ARGS="--workspace --all-targets":  #!/usr/bin/env bash  set -euo pipefail  if [ ! -f Cargo.toml ]; then    cd {{invocation_directory()}}  fi  cargo check {{ARGS}}# run all checks recommended before opening a PRfinal-check: lint clippy  #!/usr/bin/env bash  set -euo pipefail  if [ ! -f Cargo.toml ]; then    cd {{invocation_directory()}}  fi  cargo test --doc  just test# run code formattersformat:  #!/usr/bin/env bash  set -euo pipefail  if [ ! -f Cargo.toml ]; then    cd {{invocation_directory()}}  fi  cargo fmt --all  nixpkgs-fmt $(echo **.nix)# run lints (git pre-commit hook)lint:  #!/usr/bin/env bash  set -euo pipefail  env NO_STASH=true $(git rev-parse --git-common-dir)/hooks/pre-commit# run teststest: build  #!/usr/bin/env bash  set -euo pipefail  if [ ! -f Cargo.toml ]; then    cd {{invocation_directory()}}  fi  cargo test# run and restart on changeswatch *ARGS="-x run":  #!/usr/bin/env bash  set -euo pipefail  if [ ! -f Cargo.toml ]; then    cd {{invocation_directory()}}  fi  env RUST_LOG=${RUST_LOG:-debug} cargo watch {{ARGS}}# run `cargo clippy` on everythingclippy *ARGS="--locked --offline --workspace --all-targets":  cargo clippy {{ARGS}} -- --deny warnings --allow deprecated# run `cargo clippy --fix` on everythingclippy-fix *ARGS="--locked --offline --workspace --all-targets":  cargo clippy {{ARGS}} --fix# run `semgrep`semgrep:  env SEMGREP_ENABLE_VERSION_CHECK=0 \    semgrep --error --no-rewrite-rule-ids --config .config/semgrep.yaml# check typos[no-exit-message]typos *PARAMS:  #!/usr/bin/env bash  set -eo pipefail  export FLAKEBOX_GIT_LS  FLAKEBOX_GIT_LS="$(git ls-files)"  export FLAKEBOX_GIT_LS_TEXT  FLAKEBOX_GIT_LS_TEXT="$(echo "$FLAKEBOX_GIT_LS" | grep -v -E "^db/|\.(png|ods|jpg|jpeg|woff2|keystore|wasm|ttf|jar|ico)\$")"  if ! echo "$FLAKEBOX_GIT_LS_TEXT" | typos {{PARAMS}} --file-list - --force-exclude ; then    >&2 echo "Typos found: Valid new words can be added to '.typos.toml'"    return 1  fi# fix all typos[no-exit-message]typos-fix-all:  just typos -w# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION
 |