Skip to content

small change to docs to lessen feature flag change confusion #638

@holderl5

Description

@holderl5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions