Skip to content

Remove dependency on std for async feature#1591

Merged
alexcrichton merged 6 commits intobytecodealliance:mainfrom
alexcrichton:nostd
Apr 16, 2026
Merged

Remove dependency on std for async feature#1591
alexcrichton merged 6 commits intobytecodealliance:mainfrom
alexcrichton:nostd

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit adds no_std support for the async feature of the wit-bindgen crate, notably enabling this to be used as part of the standard library for wasip3.

This commit adds `no_std` support for the `async` feature of the
`wit-bindgen` crate, notably enabling this to be used as part of the
standard library for wasip3.
@alexcrichton alexcrichton requested a review from dicej April 16, 2026 21:06
}
assert_eq!(Arc::weak_count(&self), 0);

self.in_use.store(false, Release);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we use RAII for this (or the with pattern you used for WakerState)? I get a little nervous about someone later adding an early return above and not noticing this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Seems reasonable yeah 👍

@alexcrichton alexcrichton enabled auto-merge April 16, 2026 22:13
@alexcrichton alexcrichton added this pull request to the merge queue Apr 16, 2026
Merged via the queue into bytecodealliance:main with commit 2f767a5 Apr 16, 2026
28 checks passed
@alexcrichton alexcrichton deleted the nostd branch April 16, 2026 22:54
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.

2 participants