Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jupp0r
2y ago
0 comments
Save
Share
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.
0 comments
3 comments · 2 top-level
top
newest
oldest
rusbus
2y ago
· 1 in thread
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!
jupp0r
OP
2y 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.
csomar
2y ago
I wish this was true but it isn't.
j
/
k
navigate · click thread line to collapse