Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

depinfo format version #68

Closed
wants to merge 3 commits into from
Closed

depinfo format version #68

wants to merge 3 commits into from

Conversation

weihanglo
Copy link
Owner

No description provided.

@weihanglo weihanglo force-pushed the depinfo-format branch 6 times, most recently from a2a2ad7 to e4fac7a Compare October 30, 2024 22:30
We're going to add the magic marker in the next commit.
The v0 test is to ensure that we don't change anything unexpected.
@weihanglo weihanglo force-pushed the depinfo-format branch 2 times, most recently from 5c17b23 to 7e60ca4 Compare October 30, 2024 22:40
Encodes the version information into Cargo's fingerprint dep-info files,
so that when the format encoding changes in the future,
Cargo understands a dep-info file was outdated and doesn't bother parsing it.

Since there was no version info encoded in the old format (call it v0),
to be compatible with older cargoes,
this PR works around it with a horrible hack.
It is explained in the doc comment of `EncodedDepInfo`.
@weihanglo weihanglo closed this Oct 30, 2024
@weihanglo weihanglo deleted the depinfo-format branch October 31, 2024 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant