Skip to content

Commit 0156cdf

Browse files
committed
addressing PR3 ch04
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent 3edb7ba commit 0156cdf

File tree

10 files changed

+18
-4
lines changed

10 files changed

+18
-4
lines changed
-20.2 KB
Binary file not shown.
-10.6 MB
Binary file not shown.

chapter04/hello_world_wasi/hello_world_wasi_host/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ impl wasmtime_wasi::IoView for State {
1818
fn table(&mut self) -> &mut wasmtime_wasi::ResourceTable {
1919
&mut self.table
2020
}
21-
2221
}
2322

2423
fn main() {

chapter04/smart_cms/smartcms_kvstore_guest/guest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { get, set } from "component:smartcms/kvstore";
22
import storygen from 'storygen';
33

44
export function run() {
5-
set('guest-hello', storygen())
5+
set('guest-hello', storygen());
66
return get('guest-hello');
77
}

chapter04/smart_cms/smartcms_ml_guest/wit/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package component: smartcms-ml-guest;
1+
package component:smartcms-ml-guest;
22

33
world example {
44
export storygen: func() -> string;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:c2880b46c618cffbcac3f2f5effbcdde8a903d91cdd821d1300a158ad8f16121
3+
size 42225
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:49068c2080c2dfad055efca7637e69863b9f8b3a509afe2833b2b4093171af49
3+
size 60539
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:47a74a9f23e48fc21d51062e4f46c5c14d3b0c6ce25f12e3327c07317f4f9412
3+
size 55132

chapter04/wasi02/wasi_virt/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ wasi-virt .\hello_world_wasi02.wasm --stdout=allow -o .\hello_world_wasi02_stdou
1414

1515
```bash
1616
cargo install wasi-virt --git https://github.com/bytecodealliance/WASI-Virt --rev b662e41 --locked
17-
```
17+
```
18+
19+
> Note: I had issue installing wasi-virt on MacOS and had to install with:
20+
> ```
21+
> export CXXFLAGS="-isysroot $(xcrun --show-sdk-path) -I$(xcrun --show-sdk-path)/usr/include/c++/v1"
22+
> cargo install wasi-virt --git https://github.com/bytecodealliance/WASI-Virt --rev b662e419 --locked
23+
> ```
8.58 MB
Binary file not shown.

0 commit comments

Comments
 (0)