File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 66/crates /wasmtime-test
77/test.js
88/shared
9- example /package-lock.json
10- example /hello.component.wasm
9+ examples / hello-world / guest /package-lock.json
10+ examples / hello-world / guest /hello.component.wasm
1111/build-debug
1212/build-release
1313/build-release-weval
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ node componentize.mjs
4444
4545### Running the Component in Wasmtime
4646
47- Set up the [ Cargo.toml as in the example directory] ( example /Cargo.toml) .
47+ Set up the [ Cargo.toml as in the example directory] ( examples/hello-world/host /Cargo.toml) .
4848
49- Set up [ ` src/main.rs ` ] ( example /src/main.rs) as in the example directory.
49+ Set up [ ` src/main.rs ` ] ( examples/hello-world/host /src/main.rs) as in the example directory.
5050
5151Building and running the binary should print the result:
5252
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ export TEST_BINARY_PATH=$(realpath host)/target/release/wasmtime-test
77# Build the JS component if not present
88echo -e " [info] expecting component WASM at [$COMPONENT_WASM_PATH ]..." ;
99if [ ! -f " $COMPONENT_WASM_PATH " ]; then
10- cd guest && npm install && npm build
10+ cd guest && npm install && npm run build && cd ..
1111fi
1212
1313# Build the Rust embedding test binary if not present
14- echo -e " [info] expecting test binary at [$COMPONENT_WASM_PATH ]..." ;
14+ echo -e " [info] expecting test binary at [$TEST_BINARY_PATH ]..." ;
1515if [ ! -f " $TEST_BINARY_PATH " ]; then
16- cd host && cargo build --release
16+ cd host && cargo build --release && cd ..
1717fi
1818
1919# Run the test binary, capturing the output
You can’t perform that action at this time.
0 commit comments