Closed djc closed 2 years ago
@djc Thanks, I can see it will be important to revert this regression, although I'm currently not sure how to still test the MSRV of WASM in CI once reverted. I can probably figure something out, but if you have any ideas, it might save me some time.
Thanks for the quick response! The opentelemetry project has a similar issue, see here:
(You may have seen that I also submitted https://github.com/strawlab/iana-time-zone/pull/58 to reduce its dependency on wasm-bindgen, but I still think it would be good to come up with a better solution here.)
Thanks for the quick response! The opentelemetry project has a similar issue, see here:
Thanks, I think something like this will work fine! I'll try to get to releasing a new patch version later today.
Just released whoami version 1.2.3 which fixes this.
Thanks!
In https://github.com/ardaku/whoami/pull/38 you constrained the allowed versions for wasm-bindgen:
However, this means that all transitive downstream dependencies are no longer allowed to depend on newer wasm-bindgen, which seems like a bad idea. If you want to test support for older MSRVs, it's probably worth downgrading your wasm-bindgen versions explicitly in the CI job instead of constraining the upper allowed version.
For example, I ran into this because I'd like to use chrono 0.4.22 (the latest version). I happen to have a transitive dependency on whoami through sqlx-core, which I wasn't aware of before today. Therefore, Cargo silently downgraded my chrono dependency as I pulled in, since chrono depends on iana-time-zone, which recently started depending on wasm-bindgen and (reasonably) requires the current version at the time (0.2.81).
This is an issue in particular for wasm-bindgen, because it is set up to be treated as a native library, which means only one version is allowed to be linked. Here's the error I get when I try to force usage of chrono 0.4.22:
So I would like to request you reconsider how you support older MSRVs.