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

Apply feedkback from porting cargo #240

Merged
merged 6 commits into from
Nov 2, 2021
Merged

Apply feedkback from porting cargo #240

merged 6 commits into from
Nov 2, 2021

Conversation

epage
Copy link
Member

@epage epage commented Nov 2, 2021

I've started an experiment in porting cargo to toml_edit and found some small API changes would be beneficial.

This gives us more implementation flexibility

BREAKING CHANGE: Instead of dealing with `Document::root`, use
`Document::as_table()` or `Document::as_table_mut()`.
In porting cargo to toml_edit, I found it would be nice if we allowed
the document to be used as the table it wraps.
This trait isn't normally interacted with by users
This is being pulled over from the `easy` API.  Found this would be
useful inside of cargo.  Some direct document interation is needed
before using serde to convert it to native types.
@epage epage merged commit 43a4a30 into toml-rs:master Nov 2, 2021
@epage epage deleted the qol branch November 2, 2021 14:45
epage added a commit to epage/toml_edit that referenced this pull request Jan 12, 2022
In some cases, this makes recursive algorithms easier.  This is a
spiritual revert of part of toml-rs#240.
epage added a commit that referenced this pull request Jan 12, 2022
In some cases, this makes recursive algorithms easier.  This is a
spiritual revert of part of #240.
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