Closed szagi3891 closed 3 years ago
Hey 👋 Thanks a LOT! ❤️ There will be new features soon as I have some days off to take care of this.
Looking at your issue I think it might be trying to compile binaryen (a C++ library) to wasm which is not intended for. There is probably something wrong with the dependencies. May I see your Cargo.toml
? There should be a cfg in front of the wasm dependencies and another in front of the wasm-run (binary running on your system). I will try to clear that out in the doc.
It should look like this you see:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "^0.2"
// your wasm web app dependencies go here
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
wasm-run = "0.5"
structopt = "0.3"
// your binary dependencies go here (or "build" dependencies
Indeed, it was a problem with dependencies.
My experimental repository: https://github.com/szagi3891/rust-reactive
It works. I could finally get rid of the rollup. Tomorrow I'll experiment harder with "wasm-run".
Thank you very much :)
First, a fantastic idea for a tool to build "wasm" projects :) I keep my fingers crossed for this project :)
I wanted to use this tool to build my project in which I experiment with rust and wasm. Unfortunately, I get a compilation error:
Can I ask for help ?