Skip to content

Commit 04fbb1d

Browse files
committed
Use @unstable for timezone.
wasi-clocks commit 4c5d1ef773c69211bd26cd157666a19896e0b7a5
1 parent 0ea0f2e commit 04fbb1d

File tree

18 files changed

+28
-18
lines changed

18 files changed

+28
-18
lines changed

crates/wasi-http/wit/deps/cli/imports.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package wasi:cli@0.2.0;
22

33
world imports {
4-
include wasi:clocks/imports@0.2.1;
4+
include wasi:clocks/imports@0.2.0;
55
include wasi:filesystem/imports@0.2.0;
66
include wasi:sockets/imports@0.2.0;
77
include wasi:random/imports@0.2.0;

crates/wasi-http/wit/deps/clocks/monotonic-clock.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.1;
1+
package wasi:clocks@0.2.0;
22
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
33
/// time.
44
///

crates/wasi-http/wit/deps/clocks/timezone.wit

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
package wasi:clocks@0.2.1;
1+
package wasi:clocks@0.2.0;
22

3+
@unstable(feature = clocks-timezone)
34
interface timezone {
45
use wall-clock.{datetime};
56

@@ -10,15 +11,18 @@ interface timezone {
1011
/// If the timezone cannot be determined for the given `datetime`, return a
1112
/// `timezone-display` for `UTC` with a `utc-offset` of 0 and no daylight
1213
/// saving time.
14+
@unstable(feature = clocks-timezone)
1315
display: func(when: datetime) -> timezone-display;
1416

1517
/// The same as `display`, but only return the UTC offset.
18+
@unstable(feature = clocks-timezone)
1619
utc-offset: func(when: datetime) -> s32;
1720

1821
/// Information useful for displaying the timezone of a specific `datetime`.
1922
///
2023
/// This information may vary within a single `timezone` to reflect daylight
2124
/// saving time adjustments.
25+
@unstable(feature = clocks-timezone)
2226
record timezone-display {
2327
/// The number of seconds difference between UTC time and the local
2428
/// time of the timezone.

crates/wasi-http/wit/deps/clocks/wall-clock.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.1;
1+
package wasi:clocks@0.2.0;
22
/// WASI Wall Clock is a clock API intended to let users query the current
33
/// time. The name "wall" makes an analogy to a "clock on the wall", which
44
/// is not necessarily monotonic as it may be reset.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
package wasi:clocks@0.2.1;
1+
package wasi:clocks@0.2.0;
22

33
world imports {
44
import monotonic-clock;
55
import wall-clock;
6+
@unstable(feature = clocks-timezone)
67
import timezone;
78
}

crates/wasi-http/wit/deps/filesystem/types.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ package wasi:[email protected];
2525
/// [WASI filesystem path resolution]: https://github.com/WebAssembly/wasi-filesystem/blob/main/path-resolution.md
2626
interface types {
2727
use wasi:io/streams@0.2.0.{input-stream, output-stream, error};
28-
use wasi:clocks/wall-clock@0.2.1.{datetime};
28+
use wasi:clocks/wall-clock@0.2.0.{datetime};
2929

3030
/// File size or length of a region within a file.
3131
type filesize = u64;

crates/wasi-http/wit/deps/http/proxy.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package wasi:[email protected];
66
/// outgoing HTTP requests.
77
world proxy {
88
/// HTTP proxies have access to time and randomness.
9-
include wasi:clocks/imports@0.2.1;
9+
include wasi:clocks/imports@0.2.0;
1010
import wasi:random/random@0.2.0;
1111

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

crates/wasi-http/wit/deps/http/types.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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@0.2.1.{duration};
5+
use wasi:clocks/monotonic-clock@0.2.0.{duration};
66
use wasi:io/streams@0.2.0.{input-stream, output-stream};
77
use wasi:io/error@0.2.0.{error as io-error};
88
use wasi:io/poll@0.2.0.{pollable};

crates/wasi-http/wit/deps/sockets/tcp.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
interface tcp {
33
use wasi:io/streams@0.2.0.{input-stream, output-stream};
44
use wasi:io/poll@0.2.0.{pollable};
5-
use wasi:clocks/monotonic-clock@0.2.1.{duration};
5+
use wasi:clocks/monotonic-clock@0.2.0.{duration};
66
use network.{network, error-code, ip-socket-address, ip-address-family};
77

88
enum shutdown-type {

crates/wasi/wit/deps/cli/imports.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package wasi:cli@0.2.0;
22

33
world imports {
4-
include wasi:clocks/imports@0.2.1;
4+
include wasi:clocks/imports@0.2.0;
55
include wasi:filesystem/imports@0.2.0;
66
include wasi:sockets/imports@0.2.0;
77
include wasi:random/imports@0.2.0;

0 commit comments

Comments
 (0)