You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasm-pack does not do what I expect when choosing to install wasm-bindgen. wasm-pack requires the version of wasm-bindgen installed and the one specified in the application's Cargo.toml to match exactly. A package with a partial version (e.g. 0.2 or 1) do not match liberally with an installed version of wasm-bindgen.
🤔 Expected Behavior
I would expect the partial version to match liberally. Specifying a version of "1" would match 1 := 1.x.x := >=1.0.0 <2.0.0.
👟 Steps to reproduce
Install 0.2.17 of wasm-bindgen
Checkout master.
Make a local test project that does wasm-bindgen stuff.
Set the version of wasm-bindgen in Cargo.toml to "0.2"
Run wasm-pack on the directory
The wasm-bindgen binary will not be found and it will begin installing one.
Switch the installed version to "0.2.17".
It finds the globally installed instance. It works.
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: d5bf5a3
rustc version: rustc 1.30.0-nightly (33b923fd4 2018-08-18)
The text was updated successfully, but these errors were encountered:
We must match the wasm-bindgen version used to in cargo build exactly (ish) and the way to do that properly is #270. That will also allow cargo to choose a semver compatible version of wasm-bindgen, and also for wasm-pack to use that exact version.
Going to close this as a duplicate of that issue -- thanks for taking the time to file an issue!
🐛 Bug description
wasm-pack does not do what I expect when choosing to install wasm-bindgen. wasm-pack requires the version of wasm-bindgen installed and the one specified in the application's Cargo.toml to match exactly. A package with a partial version (e.g. 0.2 or 1) do not match liberally with an installed version of wasm-bindgen.
🤔 Expected Behavior
I would expect the partial version to match liberally. Specifying a version of "1" would match 1 := 1.x.x := >=1.0.0 <2.0.0.
👟 Steps to reproduce
The wasm-bindgen binary will not be found and it will begin installing one.
Switch the installed version to "0.2.17".
It finds the globally installed instance. It works.
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: d5bf5a3
rustc version: rustc 1.30.0-nightly (33b923fd4 2018-08-18)
The text was updated successfully, but these errors were encountered: