dart-archive / wasm

Utilities for loading and running WASM modules from Dart code
https://pub.dev/packages/wasm
BSD 3-Clause "New" or "Revised" License
309 stars 25 forks source link

Move dynamic library location related logic into wasmer_locator.dart #108

Closed modulovalue closed 2 years ago

modulovalue commented 2 years ago

This cleans up the dynamic library discovery logic.

In many cases (e.g. where sophisticated build systems are not available) it is much more practical to have a single globally built dynamic library, and to reuse that dynamic library everywhere where it is needed. This doesn't make that possible yet (due to the runtime singleton), but it moves this package in the right direction UX-wise by decoupling the default locations from the actual implementation.

modulovalue commented 2 years ago

macos 2.12 passed now