generated from emilk/eframe_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
43 lines (34 loc) · 1.05 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
# for each dir in crates which has a `wit` directory in it, AND has src/bindings.rs, build it
build-wits:
for dir in crates/*; do \
if [ -d $dir/wit ] && [ -f $dir/src/bindings.rs ]; then \
echo "Processing $dir"; \
(cd $dir && cargo component build); \
(cd $dir && cargo component build --release); \
fi; \
done
# build all wit examples in examples/ directory
build-examples:
for dir in examples/*; do \
if [ -d $dir/wit ] && [ -f $dir/src/bindings.rs ]; then \
echo "Processing $dir"; \
(cd $dir && cargo component build --target wasm32-unknown-unknown); \
(cd $dir && cargo component build --target wasm32-unknown-unknown --release); \
fi; \
done
build: build-examples
cargo build
test: build
cargo test
run: build
cargo run
web-dev: build
trunk serve --open
check: build
./check.sh
check32:
RUSTFLAGS="--deny warnings" cargo check --target wasm32-unknown-unknown
build32:
cargo +nightly build -Z build-std --target wasm32-unknown-unknown
force:
cargo run --bin force-build-wasm-bins