Skip to content

Commit 91f7bba

Browse files
author
Pat Hickey
committed
update dependencies on clocks, random, cli, and io to @0.2.0-rc-2023-11-10
1 parent cc3f713 commit 91f7bba

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

wit/proxy.wit

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@ package wasi:http;
66
/// outgoing HTTP requests.
77
world proxy {
88
/// HTTP proxies have access to time and randomness.
9-
import wasi:clocks/wall-clock;
10-
import wasi:clocks/monotonic-clock;
11-
import wasi:clocks/timezone;
12-
import wasi:random/random;
9+
import wasi:clocks/wall-clock@0.2.0-rc-2023-11-10;
10+
import wasi:clocks/monotonic-clock@0.2.0-rc-2023-11-10;
11+
import wasi:random/random@0.2.0-rc-2023-11-10;
1312

1413
/// Proxies have standard output and error streams which are expected to
1514
/// terminate in a developer-facing console provided by the host.
16-
import wasi:cli/stdout;
17-
import wasi:cli/stderr;
15+
import wasi:cli/stdout@0.2.0-rc-2023-11-10;
16+
import wasi:cli/stderr@0.2.0-rc-2023-11-10;
1817

1918
/// TODO: this is a temporary workaround until component tooling is able to
2019
/// gracefully handle the absence of stdin. Hosts must return an eof stream
2120
/// for this import, which is what wasi-libc + tooling will do automatically
2221
/// when this import is properly removed.
23-
import wasi:cli/stdin;
22+
import wasi:cli/stdin@0.2.0-rc-2023-11-10;
2423

2524
/// This is the default handler to use when user code simply wants to make an
2625
/// HTTP request (e.g., via `fetch()`).

wit/types.wit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
/// HTTP Requests and Responses, both incoming and outgoing, as well as
33
/// their headers, trailers, and bodies.
44
interface types {
5-
use wasi:clocks/monotonic-clock.{duration};
6-
use wasi:io/streams.{input-stream, output-stream, error as stream-error};
7-
use wasi:io/poll.{pollable};
5+
use wasi:clocks/monotonic-clock@0.2.0-rc-2023-11-10.{duration};
6+
use wasi:io/streams@0.2.0-rc-2023-11-10.{input-stream, output-stream, error as stream-error};
7+
use wasi:io/poll@0.2.0-rc-2023-11-10.{pollable};
88

99
/// This type corresponds to HTTP standard Methods.
1010
variant method {

0 commit comments

Comments
 (0)