New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to make gluon compile compile to WASM #424

Closed
Marwes opened this Issue Jan 1, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@Marwes
Copy link
Member

Marwes commented Jan 1, 2018

cc #418

It would be interesting to know if gluon can be compiled to WASM. Currently it is blocked on tokio-core not working on WASM but there may be one or two more dependencies preventing this as well.

To fix the tokio-core issue it may be made into an optional dependency

tokio-core = "0.1.0"

tokio-core = "0.1"

(also make it a default dependency though since usually you do want it included).

Then it should be possible to test compiling without tokio-core by passing --no-default-features (this is also tested in travis as well

cargo check --all --no-default-features &&
.

If there are any other dependencies that fails the WASM compilation these can hopefully be fixed in the same way (making them optional) or they could possibly be fixed upstream.

End goal is to make cargo build --package gluon_c-api --target wasm32-unknown-unknown --release work! (Note that this means that gluon_repl do not need to work with WASM as that uses many OS dependent features).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment