Skip to content

Support for wasm#142

Merged
zhangsoledad merged 6 commits intonervosnetwork:masterfrom
Officeyutong:wasm
May 27, 2025
Merged

Support for wasm#142
zhangsoledad merged 6 commits intonervosnetwork:masterfrom
Officeyutong:wasm

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

@Officeyutong Officeyutong marked this pull request as ready for review May 15, 2025 07:59
@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