Skip to content

Implement io module for WASIp3 - #162

Open
adamrk wants to merge 4 commits into
mainfrom
abk/io-p3
Open

adamrk wants to merge 4 commits into
mainfrom
abk/io-p3

Conversation

@adamrk

@adamrk adamrk commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Resolves #155

Here the p2 and p3 backends have completely different implementations because the underlying streams are quite different. Notably, flush becomes a no-op on p3 streams because they have no notion of flushing. However, we are able to implement flush for Stdout and Stderr.

Comment thread test-programs/build.rs
Comment on lines 6 to +20
@@ -16,13 +17,13 @@ fn main() {
meta.workspace_root.as_os_str().to_str().unwrap()
);

fn build_targets(pkg: &str, manifest: &str, kind: &str, out_dir: &PathBuf) {
fn build_target(pkg: &str, manifest: &str, kind: &str, target: &str, out_dir: &Path) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to make some changes here to get the test programs running for both targets. We also need to detect the nightly toolchain to only run the p3 tests when using nightly.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement io on WASIp3

1 participant