Skip to content

Cargo cannot read index with namespaced features. #8044

@ehuss

Description

@ehuss

Problem
An index that contains namespaced features (those with crate:) cannot be used by nightly cargo. The versions published with those features cannot be selected by the resolver.

Steps

  1. Create an index containing crates with namespaced features.
  2. Attempt to use those crates from the index.
  3. Notice that you cannot select versions with those features.

From the log output:

[2020-03-27T16:15:07Z INFO cargo::sources::registry::index] failed to parse "my/th/mything" registry package: Features and dependencies cannot have the same name: common

Possible Solution(s)
It looks like the crux of the issue is this line where the index cache will not parse summaries with namespaced features.

cc @djc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions