Skip to content

Changing metadata should be possible without bumping a version #7146

Closed
@lifthrasiir

Description

@lifthrasiir

Currently Cargo doesn't allow the metadata to be separately updated. This doesn't seem right (as the semantic versioning only concerns about the public API and the metadata is not a part of the public API).

In order to fix this issue, the publish endpoint (/api/v1/crates/new) should be adjusted to accept the metadata without the tarball (well, or have a new endpoint for that), and the server will check if the name, version, dependencies and features match to those stored before updating that. In the CLI the cargo publish command should ask for the metadata update when the version hasn't been changed.

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