From 869cf0235273733188463df70d232793610f7528 Mon Sep 17 00:00:00 2001
From: Andrew Jones <ascjones@gmail.com>
Date: Thu, 24 Feb 2022 17:45:46 +0000
Subject: [PATCH 1/2] Revert bitvec field order for binary compatibility

---
 src/ty/mod.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ty/mod.rs b/src/ty/mod.rs
index aff76341..dd1a4faf 100644
--- a/src/ty/mod.rs
+++ b/src/ty/mod.rs
@@ -544,10 +544,10 @@ where
 #[cfg_attr(any(feature = "std", feature = "decode"), derive(scale::Decode))]
 #[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Encode, Debug)]
 pub struct TypeDefBitSequence<T: Form = MetaForm> {
-    /// The type implementing [`bitvec::order::BitOrder`].
-    bit_order_type: T::Type,
     /// The type implementing [`bitvec::store::BitStore`].
     bit_store_type: T::Type,
+    /// The type implementing [`bitvec::order::BitOrder`].
+    bit_order_type: T::Type,
 }
 
 impl IntoPortable for TypeDefBitSequence {
@@ -555,8 +555,8 @@ impl IntoPortable for TypeDefBitSequence {
 
     fn into_portable(self, registry: &mut Registry) -> Self::Output {
         TypeDefBitSequence {
-            bit_order_type: registry.register_type(&self.bit_order_type),
             bit_store_type: registry.register_type(&self.bit_store_type),
+            bit_order_type: registry.register_type(&self.bit_order_type),
         }
     }
 }

From da0535096e43a28a56fd9f1cdc54cc5edb2db9e6 Mon Sep 17 00:00:00 2001
From: Andrew Jones <ascjones@gmail.com>
Date: Thu, 24 Feb 2022 17:48:43 +0000
Subject: [PATCH 2/2] Prepare release

---
 CHANGELOG.md | 5 +++++
 Cargo.toml   | 2 +-
 src/lib.rs   | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index a84be839..53ec8632 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased]
 
+## [2.0.1] - 2022-02-24
+
+## Changed
+- Revert bitvec field order to maintain binary compatiblilty
+
 ## [2.0.0] - 2022-02-07
 
 ## Changed
diff --git a/Cargo.toml b/Cargo.toml
index 586fef53..22123d85 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "scale-info"
-version = "2.0.0"
+version = "2.0.1"
 authors = ["Parity Technologies <admin@parity.io>"]
 edition = "2021"
 rust-version = "1.56.1"
diff --git a/src/lib.rs b/src/lib.rs
index 64259bdd..8c566e31 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -41,7 +41,7 @@
 //! Enable the `derive` feature of this crate:
 //!
 //! ```toml
-//! scale-info = { version = "0.6.0", features = ["derive"] }
+//! scale-info = { version = "2.0.0", features = ["derive"] }
 //! ```
 //!
 //! ```ignore