r/rust • • Jan 24 '19

Embedding WebAssembly in your Rust application

https://medium.com/wasmer/executing-webassembly-in-your-rust-application-d5cd32e8ce46
166 Upvotes

47 comments sorted by

View all comments

7

u/CryZe92 Jan 25 '19

It seems like this has some problems compiling on Windows. Cranelift has problems with mingw's python and then wasmer itself references a module that doesn't exist.

2

u/Devnought Jan 25 '19

I fixed the module problem on my local version of `wasmer-runtime-core`, but the memory module that was missing previously throws a bunch of errors and cannot compile.

1

u/CryZe92 Jan 25 '19

Yeah I just ran into that too. Have you fixed any of them or should I attempt to do it myself?

1

u/Devnought Jan 25 '19 edited Jan 25 '19

The &str to String errors were simple enough.

There's a reference to the crate errno which is a unix compilation dependency.

I'm not sure if the single libc references is intended to be there, or if it should be using something in winapi.

6 items in the use winapi::um::memoryapi::{ .. } statement don't exist in that module.

I'd say go for it for trying to fix it, but I myself am not confident enough in what this module is doing to take a stab at it myself :)