Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion wit-0.3.0-draft/stdio.wit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@since(version = 0.3.0-rc-2025-08-15)
interface stdio {
interface types {
@since(version = 0.3.0-rc-2025-08-15)
enum error-code {
/// Input/output error
Expand All @@ -13,6 +13,8 @@ interface stdio {

@since(version = 0.3.0-rc-2025-08-15)
interface stdin {
use types.{error-code};

/// Return a stream for reading from stdin.
///
/// This function returns a stream which provides data read from stdin,
Expand All @@ -32,6 +34,8 @@ interface stdin {

@since(version = 0.3.0-rc-2025-08-15)
interface stdout {
use types.{error-code};

/// Write the given stream to stdout.
///
/// If the stream's writable end is dropped this function will either return
Expand All @@ -46,6 +50,8 @@ interface stdout {

@since(version = 0.3.0-rc-2025-08-15)
interface stderr {
use types.{error-code};

/// Write the given stream to stderr.
///
/// If the stream's writable end is dropped this function will either return
Expand Down