|
|
|
|
|
by Shadonototra
1539 days ago
|
|
Security wise, it is not a good idea to consume WASM libraries "as is", ask for the source, read it, and compile it yourself You don't want to be in a position to ship code to production with binary code that could potentially be harmful Off topic: Please don't mess up the way my browser scroll pages, it is infuriating |
|
That said I generally agree with the premise, and even with sandboxing you should vet dependencies like these where appropriate if you can. A good example of this is something like an image decoder versus a database library (both of these being real scenarios; e.g. using a pure-Rust implementation of some SQL protocol.) The first one I probably wouldn't worry too about much, you're just giving it pixels in and getting pixels out. But the second one is likely worth a bit of scrutiny since it interfaces directly with a sensitive component.