Giter Club home page Giter Club logo

Comments (8)

data-pup avatar data-pup commented on May 20, 2024

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.

ashleygwilliams avatar ashleygwilliams commented on May 20, 2024

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.

data-pup avatar data-pup commented on May 20, 2024

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.

data-pup@7b45520

from wasm-pack.

ashleygwilliams avatar ashleygwilliams commented on May 20, 2024

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.

data-pup avatar data-pup commented on May 20, 2024

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.

ashleygwilliams avatar ashleygwilliams commented on May 20, 2024

@data-pup can you run rustc --version and cargo fmt --version and let me know what the output is?

from wasm-pack.

data-pup avatar data-pup commented on May 20, 2024

@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.

fitzgen avatar fitzgen commented on May 20, 2024

Fixed in #192

from wasm-pack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.