Made an issue for crossgen(1) to automate building cross-platform libraries.
Would be great if building @rustlang libraries for {WASM, android, iOS} was as easy as building cross-platform binaries. Help on building a first version would be very welcome!https://github.com/yoshuawuyts/crossgen/issues/11 …
-
-
Replying to @yoshuawuyts @rustlang
How would a library built for wasm look like? A module?
2 replies 0 retweets 1 like -
The reason I ask is that I am working on a toy (for now) programming language and there is always a question about how to pack libraries for each platform. I guess it's just my lack of education about what kinds of libraries different operating systems have.
1 reply 0 retweets 1 like -
Because with binaries it always seems rather straightforward.
1 reply 0 retweets 1 like -
Oh cool, yeah -- there's a few interesting ones here: - WASM is a combination of binary WASM + JS API to load & call into the WASM. - C is done using shared `.so` objects - Java needs a wrapper for the `.so` - Android needs a wrapper for Java More here:https://github.com/datrs/hypercore/issues/36 …
2 replies 0 retweets 1 like
Also some others: - Python: https://github.com/getsentry/milksnake … - iOS: https://github.com/TimNN/cargo-lipo … - Node.js: https://github.com/neon-bindings/neon …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.