WASI Phase 3 基盤プロポーザル(CLI・Clocks・Sockets)の 0.3.2 インターフェース仕様
- 2026-11-20 時点で Phase 3(Implementation Phase)に到達している WASI 基盤プロポーザルは Clocks, Random, Filesystem, Sockets, CLI, HTTP の 6 件である(
Clocks: Timezoneは Phase 2)。 wasi:cli/command@0.3.2はenvironment,exit(exit/exit-with-code),stdin/stdout/stderr,terminal-*,clocks/*,filesystem/{types,preopens},sockets/{types,ip-name-lookup},random/*をimportし、wasi:cli/run@0.3.2をexportする。- WASI 0.3 の
wasi:cli/stdout@0.3.2およびstderr@0.3.2では、write-via-streamがstream<u8>を引数に取りfuture<result<_, error-code>>を返すネイティブ非同期ストリーム設計となっている。 wasi:clocks/types@0.3.2ではdurationをナノ秒単位のu64として定義している。wasi:socketsの権限付与設計(GrantingAccess.md)では、TCP/UDP 別・インバウンド/アウトバウンド別・ドメイン/ポート/IP バージョン(IPv4/IPv6)単位の細粒度許可に加え、仮想ドメインやポートのホスト側リマップ(例:my-database.internal->172.17.0.14:5432->5433)が可能な設計例が示されている。
関連概念
- implementsWASI 基盤インターフェース(CLI・Clocks・Sockets)のケーパビリティ設計 — WASI 基盤 3 領域の 0.3.2 インターフェースと権限制御仕様。
Primary Sources
- Tier 1 WebAssembly System Interface (WASI) Specification Repository
docs/Proposals.md, proposals/cli/command.md & proposals/sockets/GrantingAccess.md (commit 463701e0f6c5)↗
Relations
Outgoing
- implements WASI 基盤インターフェース(CLI・Clocks・Sockets)のケーパビリティ設計
- supports WASI 基盤インターフェース(CLI・Clocks・Sockets)のケーパビリティ設計
Backlinks
- WASI 基盤インターフェース(CLI・Clocks・Sockets)のケーパビリティ設計 evidenced_by