Skip to content

Should a version indicator be encoded into Cargo.lock #7144

Description

@alexcrichton

The Cargo.lock format is changing over time (and is practically guaranteed to continue changing) and the most recent change has brought up ideas again about possibly encoding a version number into Cargo.lock. There's a number of comments on that thread weighing some pros and cons (including this one).

One possible way to implement this would be to add a field to the [metadata] table. Every version of Cargo ever preserves the [metadata] table, and so we can add a version number in there practically any time and have it preserved by older Cargo while recognized by newer Cargo.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lockfileArea: Cargo.lock issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions