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

fix: Handle both underscores and hypthens as separators in "wasm-bind… #267

Merged
merged 1 commit into from
Aug 27, 2018

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Aug 24, 2018

…gen" dependencies

Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed and have your
    cloned directory set to nightly
$ rustup override set nightly
$ rustup component add rustfmt-preview --toolchain nightly
  • You ran rustfmt on the code base before submitting
  • You reference which issue is being closed in the PR text

✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨

@fitzgen fitzgen requested a review from data-pup August 24, 2018 23:00
@fitzgen fitzgen force-pushed the hyphens-and-underscores branch 2 times, most recently from 0878e98 to 12210c2 Compare August 24, 2018 23:39
style("wasm-bindgen").bold().dim()
))
get_wasm_bindgen_version(path)?;
Ok(())
Copy link
Member

Choose a reason for hiding this comment

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

😄

src/manifest.rs Outdated
match deps
.get("wasm-bindgen")
.or_else(|| deps.get("wasm_bindgen"))
{
Copy link
Member

Choose a reason for hiding this comment

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

This is really nice :)

Copy link
Member

@data-pup data-pup left a comment

Choose a reason for hiding this comment

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

Aside from the failing test case, this all looks good to me! Always nice to see more test cases as well :)

@data-pup
Copy link
Member

data-pup commented Aug 25, 2018

Looking into the test that failed, it seems to be related to that fixture's wasm-bindgen dependency in its Cargo.toml, if I understand correctly?

[dependencies.wasm-bindgen]
version = "^0.2"
features = ["serde-serialize"]

@fitzgen fitzgen mentioned this pull request Aug 27, 2018
3 tasks
@fitzgen fitzgen force-pushed the hyphens-and-underscores branch from 12210c2 to 0b669ec Compare August 27, 2018 19:56
@fitzgen fitzgen force-pushed the hyphens-and-underscores branch from 0b669ec to b480674 Compare August 27, 2018 21:01
@fitzgen fitzgen merged commit d5bf5a3 into rustwasm:master Aug 27, 2018
@fitzgen fitzgen deleted the hyphens-and-underscores branch August 27, 2018 21:29
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.

2 participants