diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-02-02 19:05:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 12:05:46 +0100 |
commit | 6abf126c2a7a451cded8c6b5e6ddf1b69c84055d (patch) | |
tree | fd94c013a19fcb38954844085821ec1601c20e18 /std/wasi/README.md | |
parent | a2b5d44f1aa9d64f448a2a3cc2001272e2f60b98 (diff) |
chore: remove std directory (#9361)
This removes the std folder from the tree.
Various parts of the tests are pretty tightly dependent
on std (47 direct imports and 75 indirect imports, not
counting the cli tests that use them as fixtures) so I've
added std as a submodule for now.
Diffstat (limited to 'std/wasi/README.md')
-rw-r--r-- | std/wasi/README.md | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/std/wasi/README.md b/std/wasi/README.md deleted file mode 100644 index 829b25174..000000000 --- a/std/wasi/README.md +++ /dev/null @@ -1,72 +0,0 @@ -# wasi - -This module provides an implementation of the WebAssembly System Interface. - -## Supported Syscalls - -### wasi_snapshot_preview1 - -- [x] args_get -- [x] args_sizes_get -- [x] environ_get -- [x] environ_sizes_get -- [x] clock_res_get -- [x] clock_time_get -- [ ] fd_advise -- [ ] fd_allocate -- [x] fd_close -- [x] fd_datasync -- [x] fd_fdstat_get -- [ ] fd_fdstat_set_flags -- [ ] fd_fdstat_set_rights -- [x] fd_filestat_get -- [x] fd_filestat_set_size -- [x] fd_filestat_set_times -- [x] fd_pread -- [x] fd_prestat_get -- [x] fd_prestat_dir_name -- [x] fd_pwrite -- [x] fd_read -- [x] fd_readdir -- [x] fd_renumber -- [x] fd_seek -- [x] fd_sync -- [x] fd_tell -- [x] fd_write -- [x] path_create_directory -- [x] path_filestat_get -- [x] path_filestat_set_times -- [x] path_link -- [x] path_open -- [x] path_readlink -- [x] path_remove_directory -- [x] path_rename -- [x] path_symlink -- [x] path_unlink_file -- [x] poll_oneoff -- [x] proc_exit -- [ ] proc_raise -- [x] sched_yield -- [x] random_get -- [ ] sock_recv -- [ ] sock_send -- [ ] sock_shutdown - -## Usage - -```typescript -import Context from "https://deno.land/std@$STD_VERSION/wasi/snapshot_preview1.ts"; - -const context = new Context({ - args: Deno.args, - env: Deno.env.toObject(), -}); - -const binary = await Deno.readFile("path/to/your/module.wasm"); -const module = await WebAssembly.compile(binary); -const instance = await WebAssembly.instantiate(module, { - "wasi_snapshot_preview1": context.exports, -}); - -context.start(instance); -``` |