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

Support building wasm targets without cargo-web using wasm-bindgen #497

Merged
merged 2 commits into from
Jul 1, 2019

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented May 5, 2019

Fixes #496

Details:

  • Conditionally use wasm-bindgen-test-runner if cargo web is not used
  • Bump stdweb version from 0.4.14 to 0.14.6 to get latest wasm-bindgen improvements
  • Conditionally use dep wasm-bindgen if cargo web is not used
  • Automatically apply wasm_bindgen_test feature if building for wasm targets without cargo web

I made this change in a way that still allows building with cargo-web. But it's now no longer required if targeting wasm

@jstarry jstarry force-pushed the wasm-bindgen branch 3 times, most recently from ec130e7 to 45ea801 Compare May 5, 2019 07:26
Copy link
Member

@therustmonk therustmonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jstarry
Copy link
Member Author

jstarry commented Jul 1, 2019

bors r+

bors bot added a commit that referenced this pull request Jul 1, 2019
497: Support building wasm targets without cargo-web using wasm-bindgen r=jstarry a=jstarry

Fixes #496

Details:
* Conditionally use `wasm-bindgen-test-runner` if cargo web is not used
* Bump `stdweb` version from `0.4.14` to `0.14.6` to get latest wasm-bindgen improvements
* Conditionally use dep `wasm-bindgen` if cargo web is not used
* Automatically apply `wasm_bindgen_test` feature if building for wasm targets without cargo web

I made this change in a way that still allows building with cargo-web. But it's now no longer required if targeting wasm

Co-authored-by: Justin Starry <jstarry@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Jul 1, 2019

Build succeeded

@bors bors bot merged commit 042a956 into yewstack:master Jul 1, 2019
@jstarry jstarry deleted the wasm-bindgen branch July 1, 2019 14:38
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

Successfully merging this pull request may close these issues.

Support building without cargo-web using wasm-bindgen
2 participants