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

Add #[serde(default)] to Artifact::manifest_path #213

Merged
merged 1 commit into from Nov 20, 2022
Merged

Add #[serde(default)] to Artifact::manifest_path #213

merged 1 commit into from Nov 20, 2022

Conversation

messense
Copy link
Contributor

Fixes #212

@oli-obk
Copy link
Owner

oli-obk commented Nov 20, 2022

This is a breaking change. If we're going to do one anyway we could also just bump msrv to 1.50 which seems to be what we support in practice.

What we could land is adding a #[serde(default)] attribute to the field as that is backwards compatible

to support old Rust version like 1.48.0 which doesn't include `manifest-path` field
in `compiler-artifact` json
@messense messense changed the title Change manifest_path to an Option in Artifact struct Add #[serde(default)] to Artifact::manifest_path Nov 20, 2022
@messense
Copy link
Contributor Author

What we could land is adding a #[serde(default)] attribute to the field as that is backwards compatible

Done.

@oli-obk oli-obk merged commit 711710b into oli-obk:main Nov 20, 2022
@messense messense deleted the fix-212 branch November 20, 2022 08:25
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.

Failed to parse compiler artifact output on Rust 1.48.0
2 participants