Skip to content
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

Rust supports wasm32-unknown-unknown target now #1

Closed
bennyyip opened this issue Dec 31, 2017 · 2 comments
Closed

Rust supports wasm32-unknown-unknown target now #1

bennyyip opened this issue Dec 31, 2017 · 2 comments

Comments

@bennyyip
Copy link

See rust-lang/rust#45905 and https://www.hellorust.com/setup/wasm-target/.
FYI, https://github.com/alexcrichton/wasm-gc may reduce the output size.

@dtysky
Copy link
Owner

dtysky commented Dec 31, 2017

Thanks for your suggestion, but after trying:

wasm-gc src/rust-es/test.wasm src/rust-es/test1.wasm

I found the size of wasm file did not change a bit.

I think the reason of a huge size of output wasm file and js file is: rustc does not pass any options to emcc, so emcc will generate codes with default options (include all runtime code).

@dtysky
Copy link
Owner

dtysky commented Dec 31, 2017

Sorry...it looks I misunderstand what you say.
I will add the usage of wasm-unknown-unknown to this guide tomorrow.

Thanks.

@dtysky dtysky closed this as completed Dec 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants