carton icon indicating copy to clipboard operation
carton copied to clipboard

Make Wasmer an optional dependency?

Open MaxDesiatov opened this issue 3 years ago • 3 comments

After https://github.com/swiftwasm/carton/issues/42 is resolved, we'll be able to run tests in browsers. We should still allow using Wasmer, but I think it's easier to expect that people have a browser installed than Wasmer? Especially as currently it's not as easy to install Wasmer on Apple Silicon via Homebrew. WDYT?

MaxDesiatov avatar Nov 27 '20 12:11 MaxDesiatov

I think if we can embed a Wasm runtime in carton, it would be easier to install carton. For example, linking libwasmtime.a.

kateinoigakukun avatar Nov 28 '20 02:11 kateinoigakukun

Just seen this. Wasmer also should be easily embedded via linking if that's where the needs are (you can find libwasmer.dylib/a in the Wasmer releases).

Note: Wasmer fully supports Apple Silicon (writing this reply from a new M1 macbook, where Wasmer is successfully built and tested). The main reason Wasmer can't yet be installed via brew have nothing to do with Wasmer itself, but mainly because brew itself doesn't yet fully support Big Sur nor Rust. I have hopes they will be able to fix it soon!

syrusakbary avatar Nov 30 '20 05:11 syrusakbary

~~Note: we just discovered a small but on Wasmer when using it on M1 in the latest Rust nightly (via rustup nightly). We are working on fixing it!~~

Update: the bug is now solved and M1 is fully supported again!

syrusakbary avatar Dec 01 '20 20:12 syrusakbary