Skip to content

Commit f27d59e

Browse files
committed
refactor: use include syntax for wasi:clocks
This commit uses `include` syntax to simplify the proxy world by hiding the interfaces from wasi:clock package Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
1 parent d25b294 commit f27d59e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

wit/proxy.wit

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ package wasi:http@0.2.0-rc-2023-11-10;
55
/// this world may concurrently stream in and out any number of incoming and
66
/// outgoing HTTP requests.
77
world proxy {
8-
/// HTTP proxies have access to time and randomness.
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;
8+
// HTTP proxies have access to time and randomness.
9+
include wasi:clocks/imports@0.2.0-rc-2023-11-10;
1110
import wasi:random/random@0.2.0-rc-2023-11-10;
1211

1312
/// Proxies have standard output and error streams which are expected to

0 commit comments

Comments
 (0)