-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathjustfile
32 lines (22 loc) · 1.1 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
install:
cargo install --path crates/vsvg-cli
clippy $RUSTFLAGS="-Dwarnings":
cargo clippy --workspace --all-features --bins --examples
clippy-wasm $RUSTFLAGS="-Dwarnings":
cargo clippy --workspace --all-features --exclude msvg --exclude vsvg-cli --bins --target wasm32-unknown-unknown
docs $RUSTDOCFLAGS="-Dwarnings":
cargo doc --all-features --no-deps --lib --bins --examples -p whiskers -p whiskers-widgets -p vsvg
fmt:
cargo fmt --all -- --check
web-build:
cargo build -p whiskers-web-demo --lib --target wasm32-unknown-unknown --release
wasm-bindgen target/wasm32-unknown-unknown/release/whiskers_web_demo.wasm --out-dir crates/whiskers-web-demo/web --out-name whiskers_web_demo --no-modules --no-typescript
web-build-opt: web-build
wasm-opt -Os crates/whiskers-web-demo/web/whiskers_web_demo_bg.wasm -o crates7whiskers-web-demo/web/whiskers_web_demo_bg.wasm
web-serve:
basic-http-server crates/whiskers-web-demo/web
test:
cargo test --workspace --all-features --bins --examples
doc-test:
cargo test --doc --all-features
lint: clippy clippy-wasm fmt test doc-test docs