-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
wasm-bindgen
no longer works with feature resolver version 1
#4304
Comments
I added a CI check so this doesn't happen again. |
So I had to dig into this a bit more, because apparently no While I was working in #4306 to fix this issue without requiring Any input would be appreciated! |
wasm-bindgen
no longer works with feature resolver version 1
- bump edition to 2021 (implies default resolver 2) - also implies resolver 2 to bypass latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypasses latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypasses latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypasses latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypasses latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypasses latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypasses latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypasses latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
You are breaking a lot of crates that depend on things like v0.2.97 is still affected:
|
I'm not sure I fully understand what's going on here, but it seems like this is also the cause for this failed test/build: |
@ozabalaferrera When I change this line to I think this is why: https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html |
@smoelius, I don't think that worked for me. I also had tried setting |
623: Use resolver = "2" r=Kerollmops a=dureuill Fixes `cargo test` on stable Context: rustwasm/wasm-bindgen#4304 Co-authored-by: Louis Dureuil <[email protected]>
Edition upgrade is not necessary, it just requires I would really appreciate input on if people out there do still require resolver version 1. |
resolver v1 causes wasm-bindgen to not compile anymore. See: rustwasm/wasm-bindgen#4304
In #4312 I added a clear error message saying the following:
|
If you introduce breaking changes, please follow semver and bump a major version. |
The Rust ecosystem, which we are part of, doesn't follow Semver to the letter. We have certain policies that define what requires a minor/major version bump and what doesn't. E.g. a project that doesn't have an MSRV policy, in my experience more than half the ecosystem, is free to upgrade its MSRV without a bump. Even though this is a breaking change. While If this doesn't fit your bill consider pinning your version dependency. For context: we obviously try as much as we can not to introduce a breaking change, but unfortunately, some new features make this very hard to achieve. This wouldn't be a problem if we could simply bump the minor/major version, but this is not easily achieved with the Unfortunately it is impossible to use a project depending on different versions of My hope is that in the future we can move on to only minimally require the post-processor, in which case multiple versions in the same compilation could be supported and semver bumps become low cost. |
I will never personally use wasm. I will try to argue with the authors of |
Due to a change in wasm-bindgen [1], the "coverage" feature is being turned on, probably because we are never running the Cargo feature resolver (`resolver = 2`). Unfortunately, doing so appears to be a big change to the top-crates code so we will probably be doing manual editing for a while. [1]: rustwasm/wasm-bindgen#4304
- bump edition to 2021 - set resolver to 2 to bypass latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypass latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
- bump edition to 2021 - set resolver to 2 to bypass latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
Pinning the version is tough - we advise users to specify the exact version of wasm-bindgen and even wrote tooling to manually force the upgrade/downgrade. Unfortunately, now that wasm-bindgen is pinned with
Users have no choice but to upgrade to the latest wasm-bindgen version.... But there's no way we can update the dioxus-cli in time so our tooling will simply stop working and everyone's projects just won't work. wasm-bindgen should REALLY not be pinned to an exact version |
Is this a request to revert #4291? |
The text was updated successfully, but these errors were encountered: