|
| 1 | +# https://just.systems |
| 2 | + |
| 3 | +[private] |
| 4 | +default: |
| 5 | + @just --list |
| 6 | + |
| 7 | +[private] |
| 8 | +nightly-toolchain: |
| 9 | + rustup toolchain install nightly |
| 10 | + rustup component add --toolchain nightly rustfmt |
| 11 | + |
| 12 | +[doc('Reformat Rust components')] |
| 13 | +fmt-rust: nightly-toolchain |
| 14 | + rustup run nightly cargo fmt |
| 15 | + |
| 16 | +[doc('Reformat Indexify')] |
| 17 | +[working-directory: 'indexify'] |
| 18 | +fmt-indexify: |
| 19 | + poetry run black . |
| 20 | + poetry run isort . --profile black |
| 21 | + |
| 22 | +[doc('Reformat all components')] |
| 23 | +fmt: fmt-rust fmt-indexify |
| 24 | + |
| 25 | +[doc('Check formatting of Rust components')] |
| 26 | +check-rust: nightly-toolchain |
| 27 | + rustup run nightly cargo fmt -- --check |
| 28 | + |
| 29 | +[doc('Check formatting of Indexify')] |
| 30 | +[working-directory: 'indexify'] |
| 31 | +check-indexify: |
| 32 | + poetry run black --check . |
| 33 | + poetry run isort . --check-only --profile black |
| 34 | + |
| 35 | +[doc('Check formatting of all components')] |
| 36 | +check: check-rust check-indexify |
| 37 | + |
| 38 | +[doc('Build Rust components')] |
| 39 | +build-rust: |
| 40 | + cargo build |
| 41 | + |
| 42 | +[doc('Build Indexify')] |
| 43 | +[working-directory: 'indexify'] |
| 44 | +build-indexify: |
| 45 | + make |
| 46 | + |
| 47 | +[doc('Build all components')] |
| 48 | +build: build-rust build-indexify |
| 49 | + |
| 50 | +[doc('Clean Rust components')] |
| 51 | +clean-rust: |
| 52 | + cargo clean |
| 53 | + |
| 54 | +[doc('Clean all components')] |
| 55 | +clean: clean-rust |
| 56 | + |
| 57 | +[doc('Test Rust components')] |
| 58 | +test-rust: |
| 59 | + cargo test --workspace -- --test-threads 1 |
| 60 | + |
| 61 | +[doc('Test Indexify')] |
| 62 | +[working-directory: 'indexify/tests'] |
| 63 | +test-indexify: |
| 64 | + ./run-tests.sh |
| 65 | + |
| 66 | +[doc('Test all components')] |
| 67 | +test: test-rust test-indexify |
0 commit comments