Combining wasm32-unknown-unknown and wasm32-unknown-emscripten

  1. This is completely serious, not a hypothetical. :slight_smile:

  2. I have crateFoo (a sqlite wrapper) that compiles under wasm32-unknown-emscripten but NOT wasm32-unknown-unknown, due to bundling a version of sqlite3 statically linked

  3. I have crateBar (some WebGL bindings) that compiles under wasm32-unknown-unknown but NOT wasm32-unknown-emscripten, Iā€™m not entirely sure why.

  4. Now, I would like to use both crateFoo and crateBar in the same wasm32 app. Is there some way I can define a crate crateInterop, with some commonly used structs, have crateBar/crateFoo both use crateInterop, and somehow pass structs of type crateInterop back & forth between the two sides of app?