From a03bc784245eb4a1f4c42f8a00d8a44f594d6d5a Mon Sep 17 00:00:00 2001 From: SirWindfield Date: Sun, 4 Apr 2021 11:13:02 +0200 Subject: [PATCH 1/2] docs: add notice for deterministic attribute (de)serialization --- src/node.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.rs b/src/node.rs index 78f1a8ee..38b19ed5 100644 --- a/src/node.rs +++ b/src/node.rs @@ -229,6 +229,8 @@ impl fmt::Debug for Text { pub type Attributes = indexmap::IndexMap; /// A Map of attributes that doesn't preserve the order of the attributes. +/// Please enable the `deterministic` feature for order-preserving +/// (de)serialization. #[cfg(not(feature = "deterministic"))] pub type Attributes = HashMap; From 880ab283ae0a2be35d4da272292af0dc0991725c Mon Sep 17 00:00:00 2001 From: SirWindfield Date: Fri, 28 May 2021 13:37:32 +0200 Subject: [PATCH 2/2] Update src/node.rs Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com> --- src/node.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.rs b/src/node.rs index 38b19ed5..3d6a716c 100644 --- a/src/node.rs +++ b/src/node.rs @@ -229,6 +229,7 @@ impl fmt::Debug for Text { pub type Attributes = indexmap::IndexMap; /// A Map of attributes that doesn't preserve the order of the attributes. +/// /// Please enable the `deterministic` feature for order-preserving /// (de)serialization. #[cfg(not(feature = "deterministic"))]