Skip to content

Renamed optional dependencies get the wrong feature name recorded #1175

Closed
@Nemo157

Description

@Nemo157

async-compression 0.3.6 has a tokio-02 and a tokio-03 optional dependency, but these both get recorded and displayed as tokio. Dumping out of the database I see:

{
  ...
  "(all-implementations,\"{futures-io,stream,tokio-02,tokio-03}\")",
  ...
  "(tokio,{})",
  "(tokio,{})",
  ...
}

So all-implementations depends on tokio-02 and tokio-03, but the optional dependencies themselves show tokio.

.map(|dep| Feature::new(dep.name.clone(), Vec::new()))

Here it needs to take the renamed name (but unfortunately our little cargo-metadata dataset doesn't record this currently).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-buildsArea: Building the documentation for a crateC-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions