Skip to content

Confusing error for invalid feature names #7250

Closed
@Boddlnagg

Description

@Boddlnagg

I just tried to publish a crate containing features with names that have dots in them (see e.g. here).
On cargo publish I got the following: api errors: invalid upload request: ApplicationError("invalid crate name specified: windows.web"), and there are actually several issues:

  1. The message confusingly complains about the crate name
  2. It should complain earlier, not on publish, when you think that everything should work
  3. Is there a good reason that dots are not allowed?

By the way this also affects @retep998's 0.3 rewrite of winapi, where I originally got the idea for these features names: https://github.com/retep998/winapi-rs/blob/dev/Cargo.toml

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bug 🐞Category: unintended, undesired behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions