Skip to content
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

refactor: Add wasm support #178

Merged
merged 12 commits into from
Apr 15, 2024
Merged

refactor: Add wasm support #178

merged 12 commits into from
Apr 15, 2024

Conversation

dariusc93
Copy link
Owner

@dariusc93 dariusc93 commented Apr 13, 2024

This PR introduce basic WASM support, allowing one to compile and run while targeting wasm32-unknown-unknown

Relates to #6

Note:

  • Due to Repo current design, it may not be compatible with some wasm implementation due to objects not supporting Send or Sync. A workaround for that is to have a single future that handles access to the data while using channels to communicate. In a later version, Repo may be refactored to support stores without Sync and Send.
  • indexeddb repo would have to be manually initialized
    • for now the blockstore has a basic implementation. The datastore will be implemented later

@dariusc93 dariusc93 self-assigned this Apr 13, 2024
@dariusc93 dariusc93 marked this pull request as ready for review April 15, 2024 07:23
@dariusc93 dariusc93 merged commit 57a6a2e into libp2p-next Apr 15, 2024
@dariusc93 dariusc93 deleted the refactor/wasm-support branch April 15, 2024 07:23
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