Open ghost opened 6 years ago
Ok, so as a good starting point, rustache
isn't even needed at all.
Alright, it seems I have overlooked something important: the wasm32-unknown-emscripten
target. I am going to attempt building ProtoDefc using this target. In the mean time though, I had made removed rustache
, and made clap
an optional dependency (as it's only used for the CLI). I will continue cracking away at this, until the point where I hit a wall, where I will turn to the emscripten target.
I was able to do it! #19
Full tree output using cargo tree
When compiling using
rustc 1.25.0-nightly (b1f8e6fb0 2018-02-22)
w/cargo build --target wasm32-unknown-unknown
, these packages seem to be an issue:thread-id
, error withget_internal()
, this is a dependency ofInflector
andrustache
rustc-serialize
, error with traits not being satisfied, this is a dependency ofrustache
andnum-bigint
Then everything that uses
libc
is also broken.@hansihe, what is the best approach here. WebAssembly is the 'next step' for this project (in terms of real world usage). The only things I can think of are:
Or, I mean, we could fallback to prebuilt dependencies and asm.js (I really, really don't want to do this, especially with the Rust community making WebAssembly such a big deal)