-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
29 lines (23 loc) · 850 Bytes
/
justfile
File metadata and controls
29 lines (23 loc) · 850 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
bindings component:
cd crates/{{component}} && wkg wit fetch && cargo component bindings
build component: (bindings component)
cargo component build -p {{component}}
check:
cargo +nightly fmt
cargo check
cargo clippy --allow-dirty --fix
cargo machete
cargo sort-derives
install:
cargo install --locked cargo-component
cargo install --locked cargo-machete
cargo install --locked cargo-sort-derives
cargo install --locked cargo-watch
cargo install --locked wkg
new component:
cargo component new --editor none --lib --namespace wassemble crates/{{component}}
publish component:
cargo component publish -p {{component}}
wit component: (build component)
@safe_component=$(echo {{component}} | tr '-' '_') && \
wasm-tools component wit target/wasm32-wasip1/debug/$safe_component.wasm