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

Reading the info.toml file #1914

Merged
merged 3 commits into from Mar 27, 2024
Merged

Reading the info.toml file #1914

merged 3 commits into from Mar 27, 2024

Conversation

mo8it
Copy link
Contributor

@mo8it mo8it commented Mar 25, 2024

I replaced the toml crate with toml_edit. The toml crate uses toml_edit under the hood anyway (see https://epage.github.io/blog/2023/01/toml-vs-toml-edit by the author of both crates).
There is one change caused by this move: The display feature of toml_edit is not enabled now which means that we only activate what we use (serde and parse).

I also made handling the case of info.toml not existing in the current directory part of the error handling when trying to read the file. This eliminates a redundant syscall and the usage of unwrap.

@mo8it mo8it merged commit b8a5886 into rust-lang:main Mar 27, 2024
5 checks passed
@mo8it mo8it deleted the toml branch March 27, 2024 13:31
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.

None yet

1 participant