Skip to main content

Module toml_compat

Module toml_compat 

Source
Expand description

A serializer that reproduces the output of toml 0.5’s Serializer::pretty with pretty_array(false).

This is an internal module that is public only because it is shared by several guppy-related projects.

The TOML output is part of the stable on-disk format for guppy-related projects. If you’re not bound by backwards compatibility concerns, you probably want to use toml 1’s serializer – its output format is better.

Functions§

reorder_value
Reorders values within value to conform to what toml 0.5 does.
write_table
Writes table to out in the toml 0.5 pretty format.