Skip to content

Fix readme field parsing of Cargo.toml files #6848

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

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jul 20, 2023

Resolves #6847

This PR fixes the parsing and processing of the readme field inside Cargo.toml files by using the OptionalFile enum from the cargo_toml crate. In the future we can consider migrating more of our code to use the cargo_toml structures.

Turbo87 added 2 commits July 20, 2023 11:53
This allows the parser to handle `readme = true` and `readme = false` too.
@Turbo87 Turbo87 added C-bug 🐞 Category: unintended, undesired behavior A-backend ⚙️ labels Jul 20, 2023
@Turbo87 Turbo87 merged commit e59bfd1 into rust-lang:master Jul 20, 2023
@Turbo87 Turbo87 deleted the fix-readme-parsing branch July 20, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rust-version field ignored when readme = false is used
1 participant