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

feat(toml)!: Update generator by using toml_edit #470

Merged
merged 2 commits into from
Jan 19, 2023
Merged

Commits on Jan 19, 2023

  1. feat(toml)!: Update generator by using toml_edit

    This is the other main half of toml-rs#340.  Still have deprecations and tests left
    
    Note that strings are rendered differently, see toml-rs#287
    
    By extension this also finishes up toml-rs#396.
    
    BREAKING CHANGES
    - `impl Display for toml::Value` now renders as values, not documents, see instead `Table`
    - `toml::ser::Serializer` only serializes documents, instead see `toml::ser::ValueSerializer`
    - `toml::ser::tables_last` is removed, no longer needed
    - `toml::ser::to_vec` is removed to mirror the loss of `from_slice`
    - atm `toml::ser::to_string_pretty` just causes larger arrays to be indented
    - `toml::ser::Error` is now opaque
    - `toml::ser::Serializer::pretty_string` was removed
    - `toml::ser::Serializer::pretty_string_literal` was removed
    - `toml::ser::Serializer::pretty_array` was removed
    - `toml::ser::Serializer::pretty_array_indent` was removed
    - `toml::ser::Serializer::pretty_array_trailing_comma` was removed
    - `toml::ser::Serializer` is now used used by value, rather than `&mut`
    
    Fixes toml-rs#396
    epage committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    6e99df4 View commit details
    Browse the repository at this point in the history
  2. style: Make clippy happy

    epage committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    1064696 View commit details
    Browse the repository at this point in the history