Skip to content

Support for wasm #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 27, 2025
Merged

Support for wasm #142

merged 6 commits into from
May 27, 2025

Conversation

Officeyutong
Copy link
Contributor

This PR adds support for wasm32-unknown-unknown by:

  • Adds async implementation for some functions, especially those used by fiber
  • Some traits will be #[async_trait::async_trait(?Send)] on wasm, since futures here are not Send
  • Some trait implementation are gated out on wasm, such as impl CellDataProvider for &dyn TransactionDependencyProvider and other traits alike, since their functions are sync, but there is no sync API client on wasm
  • Gated out sync API client on wasm. There is no sync http access on wasm

@zhangsoledad zhangsoledad merged commit 50e3e22 into nervosnetwork:master May 27, 2025
11 checks passed
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.

3 participants