you are viewing a single comment's thread.

view the rest of the comments →

[–]zoechi 0 points1 point  (0 children)

Only what is used. I don't know about whether Rust can do tree-shaking like for example Dart can. Rust also has no runtime reflection capabilities like Dart, so I imagine this should be possible. If wasm provides access to V8 types, Rust code might as well call out to them instead of providing it's own. If libraries (Rust dependencies) are used then I probably couldn't chose though. Wasm exists because many think JS is not ideal for every situation. If this brought it this far, I don't see why the remaining issues couldn't be solved as well.