Skip to content

Commit

Permalink
Update README instructions (#193)
Browse files Browse the repository at this point in the history
* Minor update to instructions for building adapter

Co-authored-by: Nate Usher <[email protected]>
  • Loading branch information
nated0g and Nate Usher authored Nov 20, 2023
1 parent 8cfa63f commit 2e4b71d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,17 @@ by setting the `adapter` setting in the `[package.metadata.component]` table in
To build the adapter module, clone the [Wasmtime repository](https://github.com/bytecodealliance/wasmtime)
and run the following commands:

```
```bash
# Add the wasm32-unknown-unknown target if you haven't already
rustup target add wasm32-unknown-unknown

git checkout $REV

git submodule update --init

cargo build -p wasi-preview1-component-adapter --target wasm32-unknown-unknown --release

cp wasm32-unknown-unknown/release/wasi_snapshot_preview1.wasm $PROJECT
cp target/wasm32-unknown-unknown/release/wasi_snapshot_preview1.wasm $PROJECT
```

where `$REV` is the Wasmtime commit hash you want to use and `$PROJECT` is the
Expand Down

0 comments on commit 2e4b71d

Please sign in to comment.