Comments (8)
I would love to help out with this one if it wouldn't be too difficult for a first contribution! Would you have any advice for identifying whether or not target/wasm-bindgen exists already?
I'm guessing that this would mean adding a check to the cargo_install_wasm_bindgen
function, but I'm not quite sure what the correct method is to identify whether wasm-bindgen has already been added.
from wasm-pack.
hey @data-pup ! so, i wasn't actually entirely sure- this stack overflow answer seems mostly reasonable: https://stackoverflow.com/questions/35045996/check-if-a-command-is-in-path-executable-as-process. lemme know if you need help digesting it!
from wasm-pack.
Hi! Thank you for the link, that definitely helped. I started working on this today, here is the branch with some first steps. I think I will need to add some extra logic for this to work on Windows, which uses ;
to separate items in $PATH iirc.
Should the progress bar still show up if wasm-bindgen is already installed? Right now it just exits the cargo_install_wasm_bindgen
function if wasm-bindgen is found in the path.
from wasm-pack.
hey @data-pup ! sorry for the delay, i was out sick earlier this week- do you think you could open up a PR? it's much easier to give feedback :D looking forward to reviewing it and thanks so much!
from wasm-pack.
Hi @ashleygwilliams! Sure thing, I can open a PR today. Thanks for helping me out with contributing, I really appreciate it and am looking forward to helping out more!
from wasm-pack.
@data-pup can you run rustc --version
and cargo fmt --version
and let me know what the output is?
from wasm-pack.
@ashleygwilliams Here are the versions of rustc and rust-fmt. These might be slightly out of date, I can update these and see if that fixes the issue.
✨ rustc --version
rustc 1.26.0-nightly (a04b88d19 2018-03-19)
✨ cargo fmt --version
0.3.8-nightly (346238f 2018-02-04)
Update: I updated my nightly toolchain, and formatted using these versions:
✨ rustc --version
rustc 1.27.0-nightly (ad610bed8 2018-04-11)
✨ cargo fmt --version
rustfmt 0.4.1-nightly (e784712 2018-04-09)
This did not seem to fix the problem. The Travis build failed again :/
from wasm-pack.
Fixed in #192
from wasm-pack.
Related Issues (20)
- Allow specifying url(s) for interactive browsers tests
- NPM Package Fails to Install on Mingw
- `wasm-pack test --headless --chrome` fails in docker container HOT 2
- Wasm-opt endless loop
- `wasm-pack` doesn't default-export the init function in .d.ts file HOT 1
- npm reports warnings in generated `package.json` file
- Support msys2 environment
- Please update the ring crate to 17.x HOT 2
- `wasm32-unknown-unknown` target not found HOT 2
- `cargo install wasm-pack --version 0.12.1` fails on MacOS HOT 4
- Unknown option '-0z' HOT 1
- Unable to pack/publish when out-dir option is used for build
- 'wasm-pack build' fails because of 'error: could not compile `crossterm` (lib)' HOT 1
- `build --release` should generate JS without white-space HOT 1
- --verbose should print cargo command
- Please update the npm package HOT 1
- yarn build-wasm errors with `Unknown system error -86`
- Bump `wasm-opt` to alleviate CPU idle in optimization phase
- crate compiled by rustc 1.76.0, please recompile that crate using compiler rustc 1.76.0
- build error: 'failed to build archive: wasm32.o: section too large'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-pack.