From d1cc951e3c481e9ac90634bcbfeba6f01e93a7cc Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 3 May 2022 12:18:24 -0700 Subject: [PATCH] Make it clearer that preserve_order implies a std dependency As indicated in the summary of #885. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d3ba4062c..91f5b485e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,7 +57,7 @@ alloc = ["serde/alloc"] # Make serde_json::Map use a representation which maintains insertion order. # This allows data to be read into a Value and written back to a JSON string # while preserving the order of map keys in the input. -preserve_order = ["indexmap"] +preserve_order = ["indexmap", "std"] # Use sufficient precision when parsing fixed precision floats from JSON to # ensure that they maintain accuracy when round-tripped through JSON. This comes