Skip to content

Features added in dev-dependencies are always active inside a virtual workspace #10909

@Nemo157

Description

@Nemo157

Problem

If a crate has a dependency as both a normal dependency and as a dev-dependency, then the features it activates for the dev-dependency will be active during a normal build iff that crate is a member of a virtual workspace.

Steps

Playground building a local workspace showing the error: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=36347271fd4c23914346a6df034dc1dd

The Error is expected, it is the panic at the end that should not happen.

Possible Solution(s)

No response

Notes

Found while investigating rust-lang/docs.rs#1783

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions