Skip to content

Commit

Permalink
docs: fix the examples directory in EXAMPLE.md and .gitignore
Browse files Browse the repository at this point in the history
Also, removed the hello.component.wasm from git since it is now ignored.
  • Loading branch information
tanishiking committed Feb 26, 2025
1 parent d3c6239 commit 385ed99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ target/
/crates/wasmtime-test
/test.js
/shared
example/package-lock.json
example/hello.component.wasm
examples/hello-world/guest/package-lock.json
examples/hello-world/guest/hello.component.wasm
/build-debug
/build-release
/build-release-weval
Expand Down
4 changes: 2 additions & 2 deletions EXAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ node componentize.mjs

### Running the Component in Wasmtime

Set up the [Cargo.toml as in the example directory](example/Cargo.toml).
Set up the [Cargo.toml as in the example directory](examples/hello-world/host/Cargo.toml).

Set up [`src/main.rs`](example/src/main.rs) as in the example directory.
Set up [`src/main.rs`](examples/hello-world/host/src/main.rs) as in the example directory.

Building and running the binary should print the result:

Expand Down
Binary file removed examples/hello-world/guest/hello.component.wasm
Binary file not shown.

0 comments on commit 385ed99

Please sign in to comment.