Skip to content

Conversation

@elewis787
Copy link

@elewis787 elewis787 commented Aug 27, 2025

The existing wasm32 support caused compile errors due to outdated code, largely using atomic bool that was no longer needed or imported.

Additionally, existing WASM support did not handle WASI or wasip2 due to the async HTTP client being used. This appears to work with the browsers' fetch support, but not when targeting WASI.

This PR attempts to add wasip2 support by introducing and updating the existing WASM32 code to compile.

The wasip2 support assumes this library will be used as a guest component. Ideally, libraries like reqwest will eventually include wasip2 support so we can avoid additional dependencies. For reference seanmonstar/reqwest#2294

@elewis787
Copy link
Author

For reference, you can see the wasip2 use case here https://github.com/hayride-dev/morphs/blob/main/components/ai/models/gptoss/src/lib.rs

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