diff options
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,6 +1,6 @@ [package] name = "toml" -version = "0.4.10" +version = "0.5.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md" @@ -20,7 +20,16 @@ travis-ci = { repository = "alexcrichton/toml-rs" } [dependencies] serde = "1.0" +linked-hash-map = { version = "0.5", optional = true } [dev-dependencies] serde_derive = "1.0" serde_json = "1.0" + +[features] +default = [] + +# Use LinkedHashMap rather than BTreeMap as the map type of toml::Value. +# This allows data to be read into a Value and written back to a TOML string +# while preserving the order of map keys in the input. +preserve_order = ["linked-hash-map"] |