forked from 0xPlaygrounds/rig
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
27 lines (22 loc) · 796 Bytes
/
justfile
File metadata and controls
27 lines (22 loc) · 796 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
ci:
just fmt
just clippy
clippy:
cargo clippy --all-features --all-targets
fmt:
cargo fmt -- --check
# requires wabt, binaryen and wasm-bindgen-cli to be installed
# all of which can be installed as linux packages
build-wasm:
cargo build -p rig-wasm --release --target wasm32-unknown-unknown
wasm-bindgen \
--target experimental-nodejs-module \
--out-dir rig-wasm/pkg/src/generated \
target/wasm32-unknown-unknown/release/rig_wasm.wasm
# build-wasm-full
bwf:
just build-wasm && npm run build --prefix ./rig-wasm/pkg
# Runs a command that compiles the docs then opens it as if it were the official docs on Docs.rs
# Requires nightly toolchain
doc:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --package rig-core --all-features --open