Skip to content

Commit 74a1d20

Browse files
authored
Release WASI 0.2.1 (#612)
* rename `preview2/` to `wasip2/` * Update to v0.2.1
1 parent 3561990 commit 74a1d20

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+564
-147
lines changed

preview2/cli/command.wit

Lines changed: 0 additions & 7 deletions
This file was deleted.

preview2/cli/exit.wit

Lines changed: 0 additions & 4 deletions
This file was deleted.

preview2/cli/imports.wit

Lines changed: 0 additions & 20 deletions
This file was deleted.

preview2/cli/stdio.wit

Lines changed: 0 additions & 17 deletions
This file was deleted.

preview2/clocks/world.wit

Lines changed: 0 additions & 6 deletions
This file was deleted.

preview2/io/world.wit

Lines changed: 0 additions & 6 deletions
This file was deleted.

preview2/sockets/world.wit

Lines changed: 0 additions & 11 deletions
This file was deleted.
File renamed without changes.

wasip2/cli/command.wit

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package wasi:cli@0.2.1;
2+
3+
@since(version = 0.2.0)
4+
world command {
5+
@since(version = 0.2.0)
6+
include imports;
7+
8+
@since(version = 0.2.0)
9+
export run;
10+
}

preview2/cli/environment.wit renamed to wasip2/cli/environment.wit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@since(version = 0.2.0)
12
interface environment {
23
/// Get the POSIX-style environment variables.
34
///
@@ -7,12 +8,15 @@ interface environment {
78
/// Morally, these are a value import, but until value imports are available
89
/// in the component model, this import function should return the same
910
/// values each time it is called.
11+
@since(version = 0.2.0)
1012
get-environment: func() -> list<tuple<string, string>>;
1113

1214
/// Get the POSIX-style arguments to the program.
15+
@since(version = 0.2.0)
1316
get-arguments: func() -> list<string>;
1417

1518
/// Return a path that programs should use as their initial current working
1619
/// directory, interpreting `.` as shorthand for this.
20+
@since(version = 0.2.0)
1721
initial-cwd: func() -> option<string>;
1822
}

0 commit comments

Comments
 (0)