-
Notifications
You must be signed in to change notification settings - Fork 252
Description
In 0.2.x versions of getrandom, the feature flag "js" was used to setup wasm32-unknown-unkown. This changed to "wasm_js" in 0.3.x versions. I recently ran into a problem where I had 3 different sub-dependencies in a project on getrandom across these 2 versions. The confusion was because the web URL given in the error always shows the latest docs, I wasted some time not realizing the feature flag had changed.
I would propose to have a small change to the docs to list the previous feature flag(s) in the current docs. If it is only js -> wasm_js that is affected, I would be happy to pull a PR, otherwise, it might be better to have someone more knowledgeable complete this.
Shows a demo of how to handle this:
https://github.com/holderl5/rust-sub-dependency-feature/tree/main