-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (22 loc) · 769 Bytes
/
justfile
File metadata and controls
31 lines (22 loc) · 769 Bytes
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
# This is a justfile. See https://github.com/casey/just
list:
just --list
check:
cargo clippy -- -W clippy::correctness -D warnings
cargo fmt --check
build:
cargo build
build-release:
cargo build --release
build-web basepath='':
./scripts/build-web.sh
build-release-web basepath='':
./scripts/build-web.sh release
run *args:
cargo run -- {{args}}
run-web port='4000' host='127.0.0.1': build-web
@echo "Debug link: http://{{host}}:{{port}}?RUST_LOG=debug"
basic-http-server -a '{{host}}:{{port}}' -x web-target/wasm-debug
run-release-web port='4000' host='127.0.0.1': build-release-web
@echo "Debug link: http://{{host}}:{{port}}?RUST_LOG=debug"
basic-http-server -a '{{host}}:{{port}}' -x web-target/wasm-release