Skip to content

Cannot publish packages that enable features in dependencies (regression) #1334

Closed
@hdevalence

Description

@hdevalence

Hi, I'm trying to publish a crate that contains the following in its Cargo.toml

[features]
nightly = ["radix_51", "subtle/nightly", "clear_on_drop/nightly"]

to enable nightly features in dependencies. However, it's no longer possible to publish this crate to crates.io, since it fails with:

error: api errors: invalid upload request: invalid value: string "subtle/nightly", expected a valid feature name at line 1 column 2315

This appears to be the error generated by this code, and the same Cargo.toml was accepted up until a few days ago, so my guess is that this is a recent regression?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions