Skip to content

cargo-metadata's resolve doesn't identify the kind of the dependency #4631

@sfackler

Description

@sfackler

There's no way (as far as I can tell) to see if the runtime bitflags dependency of this setup is turned on or not via cargo-metadata.

[package]                                                                                                                                                                                                                                                                          
name = "foo"                                                                                                                                                                                                                                                                       
version = "0.1.0"                                                                                                                                                                                                                                                                  
authors = ["Steven Fackler <sfackler@gmail.com>"]                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                   
[dependencies]                                                                                                                                                                                                                                                                     
bitflags = { version = "0.1", optional = true }                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                   
[build-dependencies]                                                                                                                                                                                                                                                               
bitflags = "0.1"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions