From ecfa983e6a597b0d82ec09589950a6cb9cd739e8 Mon Sep 17 00:00:00 2001
From: Yosh
-
-
wasi:cli/environment@0.2.2
wasi:cli/exit@0.2.2
wasi:io/error@0.2.2
wasi:io/poll@0.2.2
wasi:io/streams@0.2.2
wasi:cli/stdin@0.2.2
wasi:cli/stdout@0.2.2
wasi:cli/stderr@0.2.2
wasi:cli/terminal-input@0.2.2
wasi:cli/terminal-output@0.2.2
wasi:cli/terminal-stdin@0.2.2
wasi:cli/terminal-stdout@0.2.2
wasi:cli/terminal-stderr@0.2.2
wasi:clocks/monotonic-clock@0.2.2
wasi:clocks/wall-clock@0.2.2
wasi:filesystem/types@0.2.2
wasi:filesystem/preopens@0.2.2
wasi:sockets/network@0.2.2
wasi:sockets/instance-network@0.2.2
wasi:sockets/udp@0.2.2
wasi:sockets/udp-create-socket@0.2.2
wasi:sockets/tcp@0.2.2
wasi:sockets/tcp-create-socket@0.2.2
wasi:sockets/ip-name-lookup@0.2.2
wasi:random/random@0.2.2
wasi:random/insecure@0.2.2
wasi:random/insecure-seed@0.2.2
wasi:cli/environment@0.2.3
wasi:cli/exit@0.2.3
wasi:io/error@0.2.3
wasi:io/poll@0.2.3
wasi:io/streams@0.2.3
wasi:cli/stdin@0.2.3
wasi:cli/stdout@0.2.3
wasi:cli/stderr@0.2.3
wasi:cli/terminal-input@0.2.3
wasi:cli/terminal-output@0.2.3
wasi:cli/terminal-stdin@0.2.3
wasi:cli/terminal-stdout@0.2.3
wasi:cli/terminal-stderr@0.2.3
wasi:clocks/monotonic-clock@0.2.3
wasi:clocks/wall-clock@0.2.3
wasi:filesystem/types@0.2.3
wasi:filesystem/preopens@0.2.3
wasi:sockets/network@0.2.3
wasi:sockets/instance-network@0.2.3
wasi:sockets/udp@0.2.3
wasi:sockets/udp-create-socket@0.2.3
wasi:sockets/tcp@0.2.3
wasi:sockets/tcp-create-socket@0.2.3
wasi:sockets/ip-name-lookup@0.2.3
wasi:random/random@0.2.3
wasi:random/insecure@0.2.3
wasi:random/insecure-seed@0.2.3
-
wasi:cli/run@0.2.2
wasi:cli/run@0.2.3
Import interface wasi:cli/environment@0.2.2
+Import interface wasi:cli/environment@0.2.3
Functions
@@ -64,7 +64,7 @@ directory, interpreting get-environment: func
.
as shorthand for this.
exit: func
resource error
A poll API intended to let users wait for I/O events on multiple handles at once.
WASI I/O is an I/O abstraction API which is currently focused on providing stream types.
In the future, the component model is expected to add built-in stream types;
@@ -500,7 +500,7 @@ is ready for reading, before performing the splice
.
u64
, stream-error
>type input-stream
splice
.
input-stream
>type output-stream
splice
.
output-stream
>type output-stream
splice
.
output-stream
>Terminal input.
In the future, this may include functions for disabling echoing, disabling input buffering so that keyboard events are sent through @@ -548,7 +548,7 @@ immediately, querying supported features, and so on.
resource terminal-input
The input side of a terminal.
-Terminal output.
In the future, this may include functions for querying the terminal size, being notified of terminal size changes, querying supported @@ -557,7 +557,7 @@ features, and so on.
resource terminal-output
The output side of a terminal.
-An interface providing an optional terminal-input
for stdin as a
link-time authority.
terminal-input
>>An interface providing an optional terminal-output
for stdout as a
link-time authority.
terminal-output
>>An interface providing an optional terminal-output
for stderr as a
link-time authority.
terminal-output
>>WASI Monotonic Clock is a clock API intended to let users measure elapsed time.
It is intended to be portable at least between Unix-family platforms and @@ -667,7 +667,7 @@ elapsed from the time this function is invoked.
pollable
>WASI Wall Clock is a clock API intended to let users query the current time. The name "wall" makes an analogy to a "clock on the wall", which is not necessarily monotonic as it may be reset.
@@ -708,7 +708,7 @@ also known as Unix Time. -WASI filesystem is a filesystem API primarily intended to let users run WASI programs that access their files on their existing filesystems, without significant overhead.
@@ -1177,7 +1177,7 @@ POSIX.Return a stream for appending to a file, if available.
May fail with an error-code describing why the file cannot be appended.
Note: This allows using write-stream
, which is similar to write
with
-O_APPEND
in in POSIX.
O_APPEND
in POSIX.
self
: borrow<descriptor
>Implementations are encourated to provide the following properties:
+Implementations are encouraged to provide the following properties:
error-code
>type descriptor
get-directories: func
Return the set of preopened directories, and their path.
+Return the set of preopened directories, and their paths.
descriptor
>, string
)>resource network
ipv4
: ipv4-socket-address
ipv6
: ipv6-socket-address
This interface provides a value-export of the default network handle..
network
>type pollable
future
is natively supported in Pre
pollable
>type network
udp-socket
>, error-code
>type input-stream
ok
.
error-code
>type network
tcp-socket
>, error-code
>type pollable
future
is natively supported in Pre
pollable
>WASI Random is a random data API.
It is intended to be portable at least between Unix-family platforms and Windows.
@@ -3013,7 +3013,7 @@ represented as au64
.
-The insecure interface for insecure pseudo-random numbers.
It is intended to be portable at least between Unix-family platforms and Windows.
@@ -3042,7 +3042,7 @@ a long period. -The insecure-seed interface for seeding hash-map DoS resistance.
It is intended to be portable at least between Unix-family platforms and Windows.
@@ -3066,7 +3066,7 @@ protection. -run: func
wasi:cli/environment@0.2.2
wasi:cli/exit@0.2.2
wasi:io/error@0.2.2
wasi:io/poll@0.2.2
wasi:io/streams@0.2.2
wasi:cli/stdin@0.2.2
wasi:cli/stdout@0.2.2
wasi:cli/stderr@0.2.2
wasi:cli/terminal-input@0.2.2
wasi:cli/terminal-output@0.2.2
wasi:cli/terminal-stdin@0.2.2
wasi:cli/terminal-stdout@0.2.2
wasi:cli/terminal-stderr@0.2.2
wasi:clocks/monotonic-clock@0.2.2
wasi:clocks/wall-clock@0.2.2
wasi:filesystem/types@0.2.2
wasi:filesystem/preopens@0.2.2
wasi:sockets/network@0.2.2
wasi:sockets/instance-network@0.2.2
wasi:sockets/udp@0.2.2
wasi:sockets/udp-create-socket@0.2.2
wasi:sockets/tcp@0.2.2
wasi:sockets/tcp-create-socket@0.2.2
wasi:sockets/ip-name-lookup@0.2.2
wasi:random/random@0.2.2
wasi:random/insecure@0.2.2
wasi:random/insecure-seed@0.2.2
wasi:cli/environment@0.2.3
wasi:cli/exit@0.2.3
wasi:io/error@0.2.3
wasi:io/poll@0.2.3
wasi:io/streams@0.2.3
wasi:cli/stdin@0.2.3
wasi:cli/stdout@0.2.3
wasi:cli/stderr@0.2.3
wasi:cli/terminal-input@0.2.3
wasi:cli/terminal-output@0.2.3
wasi:cli/terminal-stdin@0.2.3
wasi:cli/terminal-stdout@0.2.3
wasi:cli/terminal-stderr@0.2.3
wasi:clocks/monotonic-clock@0.2.3
wasi:clocks/wall-clock@0.2.3
wasi:filesystem/types@0.2.3
wasi:filesystem/preopens@0.2.3
wasi:sockets/network@0.2.3
wasi:sockets/instance-network@0.2.3
wasi:sockets/udp@0.2.3
wasi:sockets/udp-create-socket@0.2.3
wasi:sockets/tcp@0.2.3
wasi:sockets/tcp-create-socket@0.2.3
wasi:sockets/ip-name-lookup@0.2.3
wasi:random/random@0.2.3
wasi:random/insecure@0.2.3
wasi:random/insecure-seed@0.2.3
get-environment: func
.
as shorthand for this.
-exit: func
resource error
A poll API intended to let users wait for I/O events on multiple handles at once.
WASI I/O is an I/O abstraction API which is currently focused on providing stream types.
In the future, the component model is expected to add built-in stream types;
@@ -495,7 +495,7 @@ is ready for reading, before performing the splice
.
u64
, stream-error
>type input-stream
splice
.
input-stream
>type output-stream
splice
.
output-stream
>type output-stream
splice
.
output-stream
>Terminal input.
In the future, this may include functions for disabling echoing, disabling input buffering so that keyboard events are sent through @@ -543,7 +543,7 @@ immediately, querying supported features, and so on.
resource terminal-input
The input side of a terminal.
-Terminal output.
In the future, this may include functions for querying the terminal size, being notified of terminal size changes, querying supported @@ -552,7 +552,7 @@ features, and so on.
resource terminal-output
The output side of a terminal.
-An interface providing an optional terminal-input
for stdin as a
link-time authority.
terminal-input
>>An interface providing an optional terminal-output
for stdout as a
link-time authority.
terminal-output
>>An interface providing an optional terminal-output
for stderr as a
link-time authority.
terminal-output
>>WASI Monotonic Clock is a clock API intended to let users measure elapsed time.
It is intended to be portable at least between Unix-family platforms and @@ -662,7 +662,7 @@ elapsed from the time this function is invoked.
pollable
>WASI Wall Clock is a clock API intended to let users query the current time. The name "wall" makes an analogy to a "clock on the wall", which is not necessarily monotonic as it may be reset.
@@ -703,7 +703,7 @@ also known as Unix Time. -WASI filesystem is a filesystem API primarily intended to let users run WASI programs that access their files on their existing filesystems, without significant overhead.
@@ -1172,7 +1172,7 @@ POSIX.Return a stream for appending to a file, if available.
May fail with an error-code describing why the file cannot be appended.
Note: This allows using write-stream
, which is similar to write
with
-O_APPEND
in in POSIX.
O_APPEND
in POSIX.
self
: borrow<descriptor
>Implementations are encourated to provide the following properties:
+Implementations are encouraged to provide the following properties:
error-code
>type descriptor
get-directories: func
Return the set of preopened directories, and their path.
+Return the set of preopened directories, and their paths.
descriptor
>, string
)>resource network
ipv4
: ipv4-socket-address
ipv6
: ipv6-socket-address
This interface provides a value-export of the default network handle..
network
>type pollable
future
is natively supported in Pre
pollable
>type network
udp-socket
>, error-code
>type input-stream
ok
.
error-code
>type network
tcp-socket
>, error-code
>type pollable
future
is natively supported in Pre
pollable
>WASI Random is a random data API.
It is intended to be portable at least between Unix-family platforms and Windows.
@@ -3008,7 +3008,7 @@ represented as au64
.
-The insecure interface for insecure pseudo-random numbers.
It is intended to be portable at least between Unix-family platforms and Windows.
@@ -3037,7 +3037,7 @@ a long period. -The insecure-seed interface for seeding hash-map DoS resistance.
It is intended to be portable at least between Unix-family platforms and Windows.
diff --git a/wit/command.wit b/wit/command.wit index cc7a352..3a81766 100644 --- a/wit/command.wit +++ b/wit/command.wit @@ -1,4 +1,4 @@ -package wasi:cli@0.2.2; +package wasi:cli@0.2.3; @since(version = 0.2.0) world command { diff --git a/wit/deps.lock b/wit/deps.lock index db5e129..b08adc8 100644 --- a/wit/deps.lock +++ b/wit/deps.lock @@ -1,24 +1,24 @@ [clocks] url = "https://github.com/WebAssembly/wasi-clocks/archive/main.tar.gz" -sha256 = "c2da62619d1067646316e8592b583d77036d778e28b1154353e0825956b3d6aa" -sha512 = "4d409fc38b31646fc5de70160e81bd3fa67f9c99b4d24543b4fd40a922c7545739869521b8a997efb675d0816de8b001b6af7950e0cb0bc823d89b9f07b286c4" +sha256 = "93a701968a7dd3c5d69031bc0601681c468972fdf7e28a93bb6150a67d6ebe8b" +sha512 = "98fca567c7a01887b0fb38981f1772169b6ea8de475b546508f8b86738d84e44ba95cae81def40ac34e8809f5f60e85224077ab8cb6d6d5d6296acc1df73c159" [filesystem] url = "https://github.com/WebAssembly/wasi-filesystem/archive/main.tar.gz" -sha256 = "69e220ec22593f097c7f486dd9e4f95576ef7056d3d531a86a277654872997ba" -sha512 = "457c027aebd1430e924564b3bb2477bc163083cb1029105c1432cbdc165cdf3cce4ac62dbb8e43e3dec09e24a6b2029204212e2f0e3919137cb207165368e157" +sha256 = "69d42fb10a04a33545b17e055f13db9b1e10e82ba0ed5bdb52334e40dc07c679" +sha512 = "612effbac6f4804fe0c29dae20b78bbba59e52cb754c15402f5fe229c3153a221e0fbdff1d9d00ceaa3fe049c6a95523a5b99f772f1c16d972eade2c88326a30" [io] url = "https://github.com/WebAssembly/wasi-io/archive/main.tar.gz" -sha256 = "6d8dbfaaaa685167c1829616dc7265f5f3cb776845879555612d56544f6d9bfc" -sha512 = "52219562c4183503169cd2947b8164e1c96974500a5adf15bbf382c5992a10a626cc89c3b319204aeda6698ce59cbca2c42f98f7fde296aa77b9db4b41154dbe" +sha256 = "1cccbfe4122686ea57a25cd368e8cdfc408cbcad089f47fb6685b6f92e96f050" +sha512 = "7a95f964c13da52611141acd89bc8876226497f128e99dd176a4270c5b5efbd8cc847b5fbd1a91258d028c646db99e0424d72590cf1caf20f9f3a3343fad5017" [random] url = "https://github.com/WebAssembly/wasi-random/archive/main.tar.gz" -sha256 = "b4bb285b1c51aac2f8911f6b44ba1587108a2b24f910fe4774414dc286678b66" -sha512 = "bc2ffca0ae48f54977a763a70fcfcd5f4fca6b7c530916352f98c59627cc3f5899e47b6308bd9848b8c72e14db57e254757d580010a3d56e6888dafce3dcb679" +sha256 = "dd0c91e7125172eb8fd4568e15ad9fc7305643015e6ece4396c3cc5e8c2bf79a" +sha512 = "d1ca2e7b0616a94a3b39d1b9450bb3fb595b01fd94a8626ad75433038dde40988ecb41ab93a374d569ab72163af3b30038d7bfc3499b9c07193181f4f1d9292a" [sockets] url = "https://github.com/WebAssembly/wasi-sockets/archive/main.tar.gz" -sha256 = "f254783796170fdeac6756496cc6169903a88adeda7a5895265414bc63ba4d66" -sha512 = "3f68e874beb0ac9729d1738546a430f2f8b369eb510d3cd6dfcfc41427acb52a82701d73584b8ab637b8c3908c5d4f7a7d4806032cc5d375643fad0ebf84e053" +sha256 = "2bc0f65a8046207ee3330ad7d63f6fafeafd4cc0ea4084f081bd5e4f7b177e74" +sha512 = "3e5490e41547dffa78d52631825d93da8d60f4af0246cbaf97e1ecb879285953a86d5f1f390b10c32f91dd7eaec6f43e625a26b1c92c32a0c86fde428aedaaab" diff --git a/wit/deps/clocks/monotonic-clock.wit b/wit/deps/clocks/monotonic-clock.wit index 233cace..c676fb8 100644 --- a/wit/deps/clocks/monotonic-clock.wit +++ b/wit/deps/clocks/monotonic-clock.wit @@ -1,4 +1,4 @@ -package wasi:clocks@0.2.2; +package wasi:clocks@0.2.3; /// WASI Monotonic Clock is a clock API intended to let users measure elapsed /// time. /// @@ -10,7 +10,7 @@ package wasi:clocks@0.2.2; @since(version = 0.2.0) interface monotonic-clock { @since(version = 0.2.0) - use wasi:io/poll@0.2.2.{pollable}; + use wasi:io/poll@0.2.3.{pollable}; /// An instant in time, in nanoseconds. An instant is relative to an /// unspecified initial value, and can only be compared to instances from diff --git a/wit/deps/clocks/timezone.wit b/wit/deps/clocks/timezone.wit index 349fb57..b43e93b 100644 --- a/wit/deps/clocks/timezone.wit +++ b/wit/deps/clocks/timezone.wit @@ -1,4 +1,4 @@ -package wasi:clocks@0.2.2; +package wasi:clocks@0.2.3; @unstable(feature = clocks-timezone) interface timezone { diff --git a/wit/deps/clocks/wall-clock.wit b/wit/deps/clocks/wall-clock.wit index ec05a1f..e00ce08 100644 --- a/wit/deps/clocks/wall-clock.wit +++ b/wit/deps/clocks/wall-clock.wit @@ -1,4 +1,4 @@ -package wasi:clocks@0.2.2; +package wasi:clocks@0.2.3; /// WASI Wall Clock is a clock API intended to let users query the current /// time. The name "wall" makes an analogy to a "clock on the wall", which /// is not necessarily monotonic as it may be reset. diff --git a/wit/deps/clocks/world.wit b/wit/deps/clocks/world.wit index e36802c..05f04f7 100644 --- a/wit/deps/clocks/world.wit +++ b/wit/deps/clocks/world.wit @@ -1,4 +1,4 @@ -package wasi:clocks@0.2.2; +package wasi:clocks@0.2.3; @since(version = 0.2.0) world imports { diff --git a/wit/deps/filesystem/preopens.wit b/wit/deps/filesystem/preopens.wit index 410bec1..cea9749 100644 --- a/wit/deps/filesystem/preopens.wit +++ b/wit/deps/filesystem/preopens.wit @@ -1,11 +1,11 @@ -package wasi:filesystem@0.2.2; +package wasi:filesystem@0.2.3; @since(version = 0.2.0) interface preopens { @since(version = 0.2.0) use types.{descriptor}; - /// Return the set of preopened directories, and their path. + /// Return the set of preopened directories, and their paths. @since(version = 0.2.0) get-directories: func() -> list