Rust, wasm32, linking, shared library

Is there a notion of ".dll" or ".so" for wasm32, or is everything essentially "statically linked" ?

The XY problem is that I have a cargo workspace that builds to wasm, and there is essentially a 'root' crate whose sole job is to include a number or unrelated crates, and gets everything bundled into a single *.wasm file.

Dynamic libraries are possible with wasm, but I believe only emscripten supports this. For the other wasm targets rustc and LLVM only support static linking.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.