Satellite-im / Warp

Interface Driven Distributed Data Service
MIT License
16 stars 4 forks source link

feat: Add wasm support #494

Closed dariusc93 closed 2 months ago

dariusc93 commented 7 months ago

Previously, there were wasm support at the interface level, which also exported out to javascript as well, though this increased some complexity. However, the wasm research and implementation was postponed due to a different focus. Currently, if we are to implement wasm, we should make sure that dependencies do support wasm, split/gate off any file IO and native logic (eg reading/writing files, blocking tasks, etc) and enable the appropriate features where needed for wasm support.

Note:

dariusc93 commented 7 months ago

A couple of things to note:

dariusc93 commented 7 months ago

Notes for Constellation:

dariusc93 commented 7 months ago

Notes for MultiPass:

dariusc93 commented 7 months ago

Notes for RayGun:

dariusc93 commented 5 months ago

Notes:

dariusc93 commented 2 months ago

Closing since we were able to resolve this but also due to the exported api being moved to warp-wasm repo. See #603.

Regardless of the exported api, the rust api and warp-ipfs implementation does support wasm32-unknown-unknown without needing to be exported so this have been resolved on that part.