Y
Hacker News
new
|
ask
|
show
|
jobs
by
jupp0r
939 days ago
Why would this be specific to the SDK? If the code is Rust without any native libraries being linked, WASM should work out of the box.
2 comments
rusbus
939 days ago
Although this is true in theory, in practice you need to be very careful when writing code if you want to target WASM. One example: `SystemTime::now` will panic on some WASM platforms!
link
jupp0r
938 days ago
True, but library authors shouldn't work around those bugs. It just creates a whole lot of unnecessary legacy code in the wrong places.
link
csomar
939 days ago
I wish this was true but it isn't.
link