You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 with get_internal(), this is a dependency of Inflector and rustache
rustc-serialize, error with traits not being satisfied, this is a dependency of rustache and num-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:
Drop these as dependencies
Report these issues to the creators and see if it is possible to drop these problematic dependencies (as it would be advantageous for them to be able to boast WebAssembly compatibility)
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)
The text was updated successfully, but these errors were encountered:
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.
ghost
changed the title
Make WebAssembly-compatible
Make WebAssembly compatible
Jun 1, 2018
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)
The text was updated successfully, but these errors were encountered: