Files
third_party_rust_indexmap/test-serde
Josh Stone f301065664 Add serde_seq to serialize maps as a sequence
Our default serde implementation treats `IndexMap` as a normal map,
which is often a nice representation in serialization formats, but they
might not preserve the order.

This commit adds a `serde_seq` module with `serialize` and `deserialize`
functions, which makes it suitable for serde's field attributes, like
`#[serde(with = "indexmap::serde_seq")]`. This mode treats `IndexMap` as
a sequence of `(key, value)` pairs, which should always preserve order.
2020-12-14 16:13:59 -08:00
..