Is it currently possible / supported to compile a library as a wasm module, similar to how kotlin native compiles to a shared library? The
Kotlin/Wasm docs seem to focus on executables and I haven't managed to adapt those examples to my library use case.
For context, my use case is the following: I created a library in kotlin multiplatform, compiled it as a native shared library, created an idiomatic Python wrapper around the shared library's low-level functions, and published it to pip. One drawback I'd like to get rid of is the necessity to build and publish multiple artifacts, one per platform, because shared libraries are platform dependent. The easiest solution (as far as I can see) is to compile my library to wasm, which is platform independent, and ship that instead of a native shared library.