From 799ae7e76b99d6bc0f54802200fd2cc35d6fefa2 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 25 Jun 2021 17:33:39 +0100 Subject: [PATCH 1/8] Add 0.7.0-rc.0 release section to CHANGELOG.md --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e71b368c..75b3ec8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ + # Changelog All notable changes to this project will be documented in this file. @@ -6,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.7.0-rc.0] - 2021-06-25 // todo: [AJ] update for day of release +### Added + +- Handle more SCALE attributes: skip, index [(#44)](https://github.com/paritytech/scale-info/pull/44) +- Implement `TypeInfo` for `BTreeSet` [(#85)](https://github.com/paritytech/scale-info/pull/85) +- Implement `TypeInfo` for `Cow` [(#84)](https://github.com/paritytech/scale-info/pull/84) +- Implement `TypeInfo` for up to 20 element tuples [(#92)](https://github.com/paritytech/scale-info/pull/92) +- Add `StaticTypeInfo` convenience trait [(#91)](https://github.com/paritytech/scale-info/pull/91) +- Capture doc comments, add variant and field builders [(#87)](https://github.com/paritytech/scale-info/pull/87) +- Handle `#[codec(index = …)]` in regular enums [(#80)](https://github.com/paritytech/scale-info/pull/80) +- Add new top-level attribute `scale_info(bounds(T: SomeTrait + OtherTrait))` [(#88)](https://github.com/paritytech/scale-info/pull/88) +- (aj-vecdeque) Implement TypeInfo for VecDeque [(#99)](https://github.com/paritytech/scale-info/pull/99) +- Add BitVec support [(#98)](https://github.com/paritytech/scale-info/pull/98) +- Add `docs` feature [(#101)](https://github.com/paritytech/scale-info/pull/101) + +### Changed + +- Upgrade proc-macro-crate to v1 [(#77)](https://github.com/paritytech/scale-info/pull/77) +- Use const generics for array TypeInfo impls [(#54)](https://github.com/paritytech/scale-info/pull/54) +- Replace NonZeroU32 type lookup ids with u32 [(#90)](https://github.com/paritytech/scale-info/pull/90) +- Remove HasCompact::Type bounds [(#83)](https://github.com/paritytech/scale-info/pull/83) +- Unify sequence types [(#100)](https://github.com/paritytech/scale-info/pull/100) + +### Fixed + +- Fix serde and decode features without default features [(#74)](https://github.com/paritytech/scale-info/pull/74) +- Remove type parameter defaults [(#71)](https://github.com/paritytech/scale-info/pull/71) +- Fix trait bounds for associated types [(#76)](https://github.com/paritytech/scale-info/pull/76) + ## [0.6.0] - 2021-02-05 ### Added - Add a TypeDef to handle Compact types [(#53)](https://github.com/paritytech/scale-info/pull/53) From 9447c8d6605b3b32c69661df48c9d653c9091729 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 25 Jun 2021 17:35:18 +0100 Subject: [PATCH 2/8] Add codec bump to CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75b3ec8f..2986a5fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Replace NonZeroU32 type lookup ids with u32 [(#90)](https://github.com/paritytech/scale-info/pull/90) - Remove HasCompact::Type bounds [(#83)](https://github.com/paritytech/scale-info/pull/83) - Unify sequence types [(#100)](https://github.com/paritytech/scale-info/pull/100) +- Bump parity-scale-codec to 2.2.0-rc.2 [(#102)](https://github.com/paritytech/scale-info/pull/102) ### Fixed From 453f21d17e5e0c3bcf54c35bf9835fd6065f4383 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 25 Jun 2021 17:38:53 +0100 Subject: [PATCH 3/8] Make it 0.7.0, comment about `codec` `2.2.0-alpha` --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2986a5fb..8f554305 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.7.0-rc.0] - 2021-06-25 // todo: [AJ] update for day of release +## [0.7.0] - 2021-06-25 // todo: [AJ] update for day of release ### Added - Handle more SCALE attributes: skip, index [(#44)](https://github.com/paritytech/scale-info/pull/44) @@ -29,7 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Replace NonZeroU32 type lookup ids with u32 [(#90)](https://github.com/paritytech/scale-info/pull/90) - Remove HasCompact::Type bounds [(#83)](https://github.com/paritytech/scale-info/pull/83) - Unify sequence types [(#100)](https://github.com/paritytech/scale-info/pull/100) -- Bump parity-scale-codec to 2.2.0-rc.2 [(#102)](https://github.com/paritytech/scale-info/pull/102) +- Bump parity-scale-codec to 2.2.0-rc.2 [(#102)](https://github.com/paritytech/scale-info/pull/102) // todo: [AJ] remove this for 0.7.0 and make a 0.8.0-rc.0 release with it? ### Fixed From d7640ad44360715b43a2fe1181d99dbf9b6ab018 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 25 Jun 2021 17:47:33 +0100 Subject: [PATCH 4/8] Bump versions --- Cargo.toml | 4 ++-- derive/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ac60f8db..9aeb5e55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scale-info" -version = "0.6.0" +version = "0.7.0" authors = ["Parity Technologies "] edition = "2018" @@ -16,7 +16,7 @@ include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] bitvec = { version = "0.20.1", default-features = false, features = ["alloc"], optional = true } cfg-if = "1.0" -scale-info-derive = { version = "0.4.0", path = "derive", default-features = false, optional = true } +scale-info-derive = { version = "0.5.0", path = "derive", default-features = false, optional = true } serde = { version = "1", default-features = false, optional = true, features = ["derive", "alloc"] } derive_more = { version = "0.99.1", default-features = false, features = ["from"] } scale = { package = "parity-scale-codec", version = "2.2.0-rc.2", default-features = false, features = ["derive"] } diff --git a/derive/Cargo.toml b/derive/Cargo.toml index aa2db68f..f9456189 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scale-info-derive" -version = "0.4.0" +version = "0.5.0" authors = ["Parity Technologies ", "Centrality Developers "] edition = "2018" From e762b567f69d5bef09d7468deaaa753b6f1b3194 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 29 Jun 2021 10:55:56 +0100 Subject: [PATCH 5/8] Revert codec upgrade --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f554305..17ffe174 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Replace NonZeroU32 type lookup ids with u32 [(#90)](https://github.com/paritytech/scale-info/pull/90) - Remove HasCompact::Type bounds [(#83)](https://github.com/paritytech/scale-info/pull/83) - Unify sequence types [(#100)](https://github.com/paritytech/scale-info/pull/100) -- Bump parity-scale-codec to 2.2.0-rc.2 [(#102)](https://github.com/paritytech/scale-info/pull/102) // todo: [AJ] remove this for 0.7.0 and make a 0.8.0-rc.0 release with it? ### Fixed From 0f3decfbda8dd991277d1eeb44841e8207a51582 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 29 Jun 2021 10:58:13 +0100 Subject: [PATCH 6/8] Revert "Bump parity-scale-codec to 2.2.0-rc.2 (#102)" This reverts commit 279f3fa4 --- Cargo.toml | 2 +- test_suite/Cargo.toml | 2 +- test_suite/derive_tests_no_std/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9aeb5e55..ea67d288 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ cfg-if = "1.0" scale-info-derive = { version = "0.5.0", path = "derive", default-features = false, optional = true } serde = { version = "1", default-features = false, optional = true, features = ["derive", "alloc"] } derive_more = { version = "0.99.1", default-features = false, features = ["from"] } -scale = { package = "parity-scale-codec", version = "2.2.0-rc.2", default-features = false, features = ["derive"] } +scale = { package = "parity-scale-codec", version = "2.1", default-features = false, features = ["derive"] } [features] default = ["std", "docs"] diff --git a/test_suite/Cargo.toml b/test_suite/Cargo.toml index 4f94ec9c..a69a1aa0 100644 --- a/test_suite/Cargo.toml +++ b/test_suite/Cargo.toml @@ -12,7 +12,7 @@ license = "Apache-2.0" [dependencies] scale-info = { path = "..", features = ["derive", "serde", "decode"] } -scale = { package = "parity-scale-codec", version = "2.2.0-rc.2", default-features = false, features = ["derive"] } +scale = { package = "parity-scale-codec", version = "2.0.1", default-features = false, features = ["derive"] } serde = "1.0" serde_json = "1.0" pretty_assertions = "0.6.1" diff --git a/test_suite/derive_tests_no_std/Cargo.toml b/test_suite/derive_tests_no_std/Cargo.toml index 837b4fee..f1870d15 100644 --- a/test_suite/derive_tests_no_std/Cargo.toml +++ b/test_suite/derive_tests_no_std/Cargo.toml @@ -11,7 +11,7 @@ license = "Apache-2.0" [dependencies] scale-info = { path = "../..", default-features = false, features = ["derive"] } -scale = { package = "parity-scale-codec", version = "2.2.0-rc.2", features = ["full"] } +scale = { package = "parity-scale-codec", version = "2.0", features = ["full"] } libc = { version = "0.2", default-features = false } From d44358ba9407c0e560c531ead15312df6b05c313 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 29 Jun 2021 11:01:04 +0100 Subject: [PATCH 7/8] Update release date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17ffe174..dd4cf9d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.7.0] - 2021-06-25 // todo: [AJ] update for day of release +## [0.7.0] - 2021-06-29 ### Added - Handle more SCALE attributes: skip, index [(#44)](https://github.com/paritytech/scale-info/pull/44) From 69333aa1a19e8da07c0cd3659cfd63ab32f63987 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 29 Jun 2021 11:07:31 +0100 Subject: [PATCH 8/8] Relax parity-scale-codec version requirements --- Cargo.toml | 2 +- test_suite/Cargo.toml | 2 +- test_suite/derive_tests_no_std/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ea67d288..147dde10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ cfg-if = "1.0" scale-info-derive = { version = "0.5.0", path = "derive", default-features = false, optional = true } serde = { version = "1", default-features = false, optional = true, features = ["derive", "alloc"] } derive_more = { version = "0.99.1", default-features = false, features = ["from"] } -scale = { package = "parity-scale-codec", version = "2.1", default-features = false, features = ["derive"] } +scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] } [features] default = ["std", "docs"] diff --git a/test_suite/Cargo.toml b/test_suite/Cargo.toml index a69a1aa0..cc4b4ff4 100644 --- a/test_suite/Cargo.toml +++ b/test_suite/Cargo.toml @@ -12,7 +12,7 @@ license = "Apache-2.0" [dependencies] scale-info = { path = "..", features = ["derive", "serde", "decode"] } -scale = { package = "parity-scale-codec", version = "2.0.1", default-features = false, features = ["derive"] } +scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] } serde = "1.0" serde_json = "1.0" pretty_assertions = "0.6.1" diff --git a/test_suite/derive_tests_no_std/Cargo.toml b/test_suite/derive_tests_no_std/Cargo.toml index f1870d15..eca2c283 100644 --- a/test_suite/derive_tests_no_std/Cargo.toml +++ b/test_suite/derive_tests_no_std/Cargo.toml @@ -11,7 +11,7 @@ license = "Apache-2.0" [dependencies] scale-info = { path = "../..", default-features = false, features = ["derive"] } -scale = { package = "parity-scale-codec", version = "2.0", features = ["full"] } +scale = { package = "parity-scale-codec", version = "2", features = ["full"] } libc = { version = "0.2", default-features = false }