You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,11 @@ Those hosts then run the same codebase which is compiled to WebAssembly:
25
25
- the REPL logic
26
26
- the plugins
27
27
28
+
The plugins like `ls` or `cat` can interact with the filesystem using the primitives of the languages they are written in.
29
+
30
+
- on the CLI, a folder from the disk is mounted via the `--dir` flag
31
+
- on the browser, a virtual filesystem is mounted, the I/O operations are forwarded via the `@bytecodealliance/preview2-shim/filesystem` shim, which shims the `wasi:filesystem` filesystem interface
Check the online demo at<br/><ahref="https://topheman.github.io/webassembly-component-model-experiments/">topheman.github.io/webassembly-component-model-experiments</a>
Copy file name to clipboardExpand all lines: crates/pluginlab/README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,11 @@ Those hosts then run the same codebase which is compiled to WebAssembly:
20
20
- the REPL logic
21
21
- the plugins
22
22
23
+
The plugins like `ls` or `cat` can interact with the filesystem using the primitives of the languages they are written in.
24
+
25
+
- on the CLI, a folder from the disk is mounted via the `--dir` flag
26
+
- on the browser, a virtual filesystem is mounted, the I/O operations are forwarded via the `@bytecodealliance/preview2-shim/filesystem` shim, which shims the `wasi:filesystem` filesystem interface
27
+
23
28
More details on the github repo: [topheman/webassembly-component-model-experiments](https://github.com/topheman/webassembly-component-model-experiments).
0 commit comments