-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
63 lines (43 loc) · 1.06 KB
/
justfile
File metadata and controls
63 lines (43 loc) · 1.06 KB
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
53
54
55
56
57
58
59
60
61
62
63
set shell := ["bash", "-uc"]
default:
@just --list
fmt:
cargo fmt
check:
cargo check
test:
cargo test
typecheck:
cargo test -p capc --test typecheck
run-tests:
cargo test -p capc --test run
run-config:
cargo test -p capc --test run run_config_loader -- --nocapture
tree-sitter:
tree-sitter generate -C tree-sitter-capable
snap:
cargo insta test
parse file:
cargo run -p capc -- parse {{file}}
check-file file:
cargo run -p capc -- check {{file}}
build file:
cargo run -p capc -- build {{file}}
run file:
cargo run -p capc -- run {{file}}
audit file:
cargo run -p capc -- audit {{file}}
extern-demo-build:
make -C examples/extern_demo
extern-demo-run:
cargo run -p capc -- run --link-search examples/extern_demo --link-lib extern_demo examples/extern_demo/extern_demo.cap
http-server:
cargo run -p capc -- run examples/http_server/http_server.cap
lsp:
cargo run -p caplsp
website:
python3 website/gen_website.py
open website/index.html
code-browser:
python3 tools/gen_code_browser.py
open docs/code-browser/index.html