Skip to content

Commit

Permalink
Add WASI doc links for flags and enums
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Oct 3, 2024
1 parent b1e14c2 commit d14ab12
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wasi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ by many of the compilers out there.

## Version Support

There are currently 2 versions of WASI at the moment, [preview1](https://github.com/WebAssembly/WASI/blob/main/legacy/README.md) and [preview2](https://github.com/WebAssembly/WASI/blob/main/preview2/README.md). This library is currently
aimed at `preview1`.
There are currently 2 versions of WASI at the moment,
[preview1](https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/README.md) and
[preview2](https://github.com/WebAssembly/WASI/blob/v0.2.1/wasip2/README.md).
This library is currently aimed at `preview1`.

> **Note**: You might hear the terms `preview1/preview1` or `0.1/0.2` when referring to the versions inside the WASI docs.
> And you might hear `wasip1` when being used as a flag to a compiler target. We tend to prefer the nomenclature wasip1 / wasip2.
Expand Down
3 changes: 3 additions & 0 deletions wasi/src/main/java/com/dylibso/chicory/wasi/WasiClockId.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#clockid">clockid</a>
*/
final class WasiClockId {
private WasiClockId() {}

Expand Down
3 changes: 3 additions & 0 deletions wasi/src/main/java/com/dylibso/chicory/wasi/WasiErrno.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#errno">errno</a>
*/
enum WasiErrno {
ESUCCESS,
E2BIG,
Expand Down
3 changes: 3 additions & 0 deletions wasi/src/main/java/com/dylibso/chicory/wasi/WasiFdFlags.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#fdflags">fdflags</a>
*/
final class WasiFdFlags {
private WasiFdFlags() {}

Expand Down
3 changes: 3 additions & 0 deletions wasi/src/main/java/com/dylibso/chicory/wasi/WasiFileType.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#filetype">filetype</a>
*/
enum WasiFileType {
UNKNOWN,
BLOCK_DEVICE,
Expand Down
3 changes: 3 additions & 0 deletions wasi/src/main/java/com/dylibso/chicory/wasi/WasiFstFlags.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#fstflags">fstflags</a>
*/
final class WasiFstFlags {
private WasiFstFlags() {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#lookupflags">lookupflags</a> flags
*/
final class WasiLookupFlags {
private WasiLookupFlags() {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#oflags">oflags</a>
*/
final class WasiOpenFlags {
private WasiOpenFlags() {}

Expand Down
3 changes: 3 additions & 0 deletions wasi/src/main/java/com/dylibso/chicory/wasi/WasiRights.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#rights">rights</a>
*/
final class WasiRights {
private WasiRights() {}

Expand Down
3 changes: 3 additions & 0 deletions wasi/src/main/java/com/dylibso/chicory/wasi/WasiWhence.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.dylibso.chicory.wasi;

/**
* WASI <a href="https://github.com/WebAssembly/WASI/blob/v0.2.1/legacy/preview1/docs.md#whence">whence</a>
*/
final class WasiWhence {
private WasiWhence() {}

Expand Down

0 comments on commit d14ab12

Please sign in to comment.