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
312 stars 24 forks source link

Example projects are not easy to run #123

Open dkbast opened 1 year ago

dkbast commented 1 year ago

Neither the hello_world nor the brotli example work "out of the box" e.g. they don't have a pubspec in their folder etc pp, which makes the barrier to enter WASM with dart quite high.

Also the "basic usage" example from the readme is not there as an "example" to investigate.

In order to run either example you have to first create a new project and copy the files over, which is not ideal.

Linking to https://github.com/flutter/flutter/issues/90218 since I tried to test WASM in isolation.

Divit-vaghani commented 1 year ago

Are you able to run it ? If yes then please share the steps. 😵😵😵

modulovalue commented 1 year ago

@dkbast & @Divit-vaghani thank you for reporting that you are having issues with getting this package to work for you.

I'm wondering, have you tried following the tutorial (that can be found in the readme here) step by step? It would be very helpful if you could report the exact steps that are not working for you.

@dkbast If I understood you correctly, you'd like to have an example folder that you can just copy and paste and that just works, is that correct?

@dkbast & @Divit-vaghani It would be great if you could share more about your use case e.g.: