-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Justfile
52 lines (43 loc) · 1.26 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
_default:
just --choose
# Build all crates and other parts of the project
build:
cargo build --release
bun install
cd book && just build
cd vscode-extension && bun run package
# Run the benchmarks
bench:
cargo bench -p mabo-benches
# Run clippy over all crates, testing every feature combination
check:
cargo hack clippy --workspace --feature-powerset --no-dev-deps
# Format the code of all Rust crates
fmt:
cargo +nightly fmt --all
# Run snapshot tests and review any updates
snapshots:
cargo insta test --workspace --all-features \
--test-runner nextest \
--unreferenced delete \
--review
# Start up the local server for the book
@book:
cd book && just dev
# Check all links of the crates and book
linkcheck:
cd book && just build
lychee --cache --max-cache-age 7d \
--exclude https://github\.com/dnaka91/mabo/commit/ \
--exclude https://github\.com/dnaka91/mabo/edit/ \
'book/.vitepress/dist/**/*.html' \
'crates/**/*.rs'
# Install the LSP server into the local system
install-lsp:
cargo install --path crates/mabo-lsp --offline --debug
# Install the VSCode extension into VSCodium
install-vscodium: install-lsp
bun install
cd vscode-extension && \
bun run package && \
codium --install-extension mabo-*.vsix