WASI Preview 2 (Component Model / WASI 0.2) bindings for the Promise programming language.
This module provides typed bindings to the WASI Preview 2 interface packages for
`target(wasi) builds:
| File | Package | Provides |
|---|---|---|
cli.pr |
wasi:cli |
program exit and standard stream accessors |
clocks.pr |
wasi:clocks |
wall-clock and monotonic-clock access |
filesystem.pr |
wasi:filesystem |
filesystem access (descriptors, types, errors) |
io.pr |
wasi:io |
I/O error, polling, and stream types |
random.pr |
wasi:random |
cryptographic and non-cryptographic RNG |
cabi.pr |
— | Canonical ABI helper declarations (provided by the host runtime) |
Registered in the Promise module catalog under the name wasi_preview_2:
use wasi_preview_2;
The bindings in this module are typed to the WASI Preview 2 (WASI 0.2 /
Component Model) interface packages — wasi:cli, wasi:clocks,
wasi:filesystem, wasi:io, and wasi:random — defined by the WebAssembly
WASI Subgroup (https://github.com/WebAssembly/WASI), which are licensed under
the Apache License 2.0 with LLVM exceptions. See NOTICE for
attribution details.
Contributions require signing the Promise Lang Contributor License Agreement before they can be merged. See CONTRIBUTING.md.
Dual-licensed under either of Apache-2.0 or MIT at your option — the same terms as the Promise compiler. See NOTICE for third-party attributions.