Skip to content

Commit 5d29ba7

Browse files
committed
Add cargo component
Signed-off-by: James Sturtevant <jstur@microsoft.com>
1 parent 85730e1 commit 5d29ba7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ build-rust-wasm-examples target=default-target: (mkdir-redist target)
3333

3434
build-rust-wasi-examples target=default-target:
3535
cargo install --locked wasm-tools
36+
cargo install cargo-component --locked
3637
wasm-tools component wit ./src/wasi_samples/wit/example.wit -w -o ./src/wasi_samples/wit/component-world.wasm
3738
# use cargo component so we don't get all the wasi imports https://github.com/bytecodealliance/cargo-component?tab=readme-ov-file#relationship-with-wasm32-wasip2
3839
# we also explicitly target wasm32-unknown-unknown since cargo component might try to pull in wasi imports https://github.com/bytecodealliance/cargo-component/issues/290

0 commit comments

Comments
 (0)