Skip to content

Add wstd::main and wstd::test macros for WASIp3 - #149

Open
adamrk wants to merge 6 commits into
bytecodealliance:mainfrom
adamrk:abk/main-macro-for-wasip3
Open

Add wstd::main and wstd::test macros for WASIp3#149
adamrk wants to merge 6 commits into
bytecodealliance:mainfrom
adamrk:abk/main-macro-for-wasip3

Conversation

@adamrk

@adamrk adamrk commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Based on #146

Addresses #148

use wstd::http::{Body, Client, Request, error::ErrorCode};

#[wstd::main]
#[wstd::test]

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.

A drive-by fix. This test wasn't actually running under cargo test because it used the main macro.

@adamrk
adamrk force-pushed the abk/main-macro-for-wasip3 branch from af9bae0 to cabda1f Compare September 3, 2026 14:25
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.

1 participant