Skip to content

cargo feature or bug? #626

@tcharding

Description

@tcharding

Currently if one removes the lock file then runs DO_FEATURE_MATRIX=true RUSTUP_TOOLCHAIN=1.48.0 contrib/test.sh we get an error

thread 'main' panicked at 'packages downloaded: failed to download `wasm-bindgen-test v0.3.37`

Caused by:
    0: unable to get packages from source
    1: failed to parse manifest at `/home/tobin/.cargo/registry/src/github.com-1ecc6299db9ec823/wasm-bindgen-test-0.3.37/Cargo.toml`
    2: feature `resolver` is required

However if we remove the following from the manifest the build is fine

[target.wasm32-unknown-unknown.dev-dependencies]
wasm-bindgen-test = "0.3"
getrandom = { version = "0.2", features = ["js"] }

I do not understand why cargo tries to pull down wasm-bingen-test if the target is not wasm32? Is this a feature or a bug?

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