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

Preserve order of items in maps #234

Merged
merged 4 commits into from
Feb 27, 2023
Merged

Preserve order of items in maps #234

merged 4 commits into from
Feb 27, 2023

Commits on Jan 5, 2023

  1. Configuration menu
    Copy the full SHA
    1b009b4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6268b27 View commit details
    Browse the repository at this point in the history
  3. Sort tables last before TOML serialization

    The TOML format has a restriction that if a table itself contains
    tables, all keys with non-table values must be emitted first.
    This commit enforces said order by modifying value::Values recursively
    before handing them to the TOML serializer.
    jcaesar committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    30a67a8 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Upgrade to toml = 0.6.0.

    toml 0.6 is based on toml_edit, it:
     - allows to preserve order
     - fixes some mis-serializaitons, e.g. with mixed lists
     - does not require order of non-/table values in maps
    
    This reverts the previous commit.
    jcaesar committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    ecb5c35 View commit details
    Browse the repository at this point in the history