set dotenv-load export RUST_BACKTRACE := "0" @_choose: just --list --unsorted # Perform all verifications (compile, test, lint, etc.) verify: test lint doc check-msrv just run balance tests/samples/includes.beancount \ | grep 'Expenses:Taxes:Y2022:US:Federal:PreTax401k 18500.00 IRAUSD' \ > /dev/null just run balance tests/samples/includes.beancount \ | grep 'Assets:MyBank:Checking 2662.68 USD' \ > /dev/null # Run the desired example run example *args: cargo run --all-features --example {{example}} -- {{args}} # Watch the source files and run `just verify` when source changes watch: cargo watch --delay 0.1 --clear --why -- just verify # Run the tests test: cargo hack test --tests --feature-powerset cargo test --doc --all-features # Run the static code analysis lint: cargo fmt -- --check cargo hack clippy --all-targets # Build the documentation doc *args: cargo doc --all-features --no-deps {{args}} # Open the documentation page doc-open: (doc "--open") # Make sure the MSRV is satisfiable check-msrv: cargo msrv verify # Clean up compilation output clean: rm -rf target rm -f Cargo.lock rm -rf node_modules # Install cargo dev-tools used by the `verify` recipe (requires rustup to be already installed) install-dev-tools: rustup install stable rustup override set stable cargo install cargo-hack cargo-watch cargo-msrv cargo-release release *args: verify cargo release {{args}}