Skip to content

Latest commit

 

History

History
248 lines (174 loc) · 10.4 KB

CHANGELOG.md

File metadata and controls

248 lines (174 loc) · 10.4 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

  • Add rename attribute for renaming struct fields (#209)

[2.11.6] - 2024-11-20

  • add #[allow(deprecated)] attribute to the generated code.

[2.11.5] - 2024-10-24

  • Bump syn to 2.

[2.11.4] - 2024-10-22

  • Bump derive_more to version 1.0.0.

[2.11.3] - 2024-05-08

  • Bump proc-macro-crate to version 3.

[2.11.2] - 2024-04-05

  • Fix a bug in the PortableRegistry::retain() method where recursive types (types containing themselves) were not properly handled.

[2.11.1] - 2024-03-22

  • Fix a bug in the PortableRegistry::retain() method, where a type's id field was not adjusted to the new position of the type in the retained Vec.

[2.11.0] - 2024-03-12

Added

  • Implement TypeInfo for BinaryHeap (#200).

[2.10.0] - 2023-10-20

Added

  • Implement replace_segment attribute (#197)

[2.9.0] - 2023-07-03

Changed

  • Expose PortableType as public (#188)

[2.8.0] - 2023-06-21

Added

  • Implement TypeInfo for Rc (#185)
  • Implement TypeInfo for Duration (#184)

[2.7.0] - 2023-05-15

Added

  • TypeInfo is now implemented for Arc (#180)

[2.6.0] - 2023-04-26

Added

[2.5.0] - 2023-03-29

Added

  • ty: Make type fields public (#176)

[2.4.0] - 2023-03-23

Added

  • portable: Retain the provided type IDs (#174)

[2.3.1] - 2022-12-09

Fixed

  • Change NonZero* TypeInfo implementation to not be recursive (#171)

[2.3.0] - 2022-10-27

Implement the missing pieces for constructing PortableRegistry dynamically at runtime. This allows languages where static rust types are not available to use it.

[2.2.0] - 2022-09-14

The minimum Rust version is bumped to 1.60.0 in this release owing to using weak dependency crate features. Otherwise there are no breaking changes.

Changed

  • Loosen restriction on TypeDefBitSequence::new() so that bitvec isn't required, and try to avoid pulling in bitvec when the std feature is enabled (#168)

[2.1.2] - 2022-05-18

Fixed

  • Strip invisible delimiters from type name (#156)

[2.1.1] - 2022-04-11

Fixed

  • Restore leading :: for crate access (#152)

[2.1.0] - 2022-04-11

Added

  • Add ability to reexport crate (#145)

Fixed

  • Allow raw identifiers e.g. r#mod (#149)

[2.0.1] - 2022-02-24

Changed

  • Revert bitvec field order to maintain binary compatiblilty

[2.0.0] - 2022-02-07

Changed

  • Upgraded to parity-scale-codec 3.0
  • Upgraded to bitvec 1.0
  • Minimum Rust version is 1.56.1 for edition 2021

[1.0.0] - 2021-09-01

Changed

  • Replace Range variant with built-in composite definitions (#130)

[0.12.0] - 2021-08-25

Changed

  • Add range getters, combine start and end types (#126)

[0.11.0] - 2021-08-25

Added

  • Add type parameter getters (#122)
  • Add support for Range and RangeInclusive (#124)
  • Explicit codec indices for TypeDef and TypeDefPrimitive enums (#127)

[0.10.0] - 2021-07-29

Added

  • Add capture_docs attribute (#118)

Fixed

  • Allow codec attributes, in case missing Encode/Decode derives (#117)

Changed

  • Erase PhantomData fields (#111, #115)
  • Make variant index explicit, remove discriminant (#112)
  • Include type id in serialized type registry (#114)
  • Improve docs feature (#116)

[0.9.2] - 2021-07-09

Added

  • Add index getter to Variant (#110)

[0.9.1] - 2021-07-06

Fixed

  • Option constructor macro hygiene (#108)

[0.9.0] - 2021-06-30

Changed

  • Reverted parity-scale-codec prerelease requirement from [0.8.0-rc.1]
  • Reexport parity-scale-codec for derive (#106)

Added

  • Add skip_type_params attribute (#96)

[0.8.0-rc.1] - 2021-06-29

Changed

  • Bump parity-scale-codec to 2.2.0-rc.2 (#102)

[0.7.0] - 2021-06-29

Added

  • Handle more SCALE attributes: skip, index (#44)
  • Implement TypeInfo for BTreeSet (#85)
  • Implement TypeInfo for Cow (#84)
  • Implement TypeInfo for up to 20 element tuples (#92)
  • Add StaticTypeInfo convenience trait (#91)
  • Capture doc comments, add variant and field builders (#87)
  • Handle #[codec(index = …)] in regular enums (#80)
  • Add new top-level attribute scale_info(bounds(T: SomeTrait + OtherTrait)) (#88)
  • (aj-vecdeque) Implement TypeInfo for VecDeque (#99)
  • Add BitVec support (#98)
  • Add docs feature (#101)

Changed

  • Upgrade proc-macro-crate to v1 (#77)
  • Use const generics for array TypeInfo impls (#54)
  • Replace NonZeroU32 type lookup ids with u32 (#90)
  • Remove HasCompact::Type bounds (#83)
  • Unify sequence types (#100)

Fixed

  • Fix serde and decode features without default features (#74)
  • Remove type parameter defaults (#71)
  • Fix trait bounds for associated types (#76)

[0.6.0] - 2021-02-05

Added

  • Add a TypeDef to handle Compact types (#53)
  • Add feature for enabling decoding (#59)

Fixed

  • Derive: use known crate name aliases (#61)

[0.5.0] - 2021-01-27

Added

  • Add a new TypeDef variant to handle PhantomData - (#48)
  • TypeInfo for up to 16 tuples, Clone PortableRegistry - (#50)
  • Enumerate RegistryReadOnly types, Display Path - (#27)
  • Add missing 256 bits types which are needed by Solang - (#25)

Changed

  • Ensure only static lifetimes appear in derived types - (#39)
  • Remove unused function MetaType::of() - (#49)
  • Use PortableRegistry for encoding and serializing - (#40)
  • Rename Compact to Portable - (#41)
  • Parameterize CompactForm String for optional SCALE impl - (#35)
  • Derive TypeInfo for fields with associated types without bounds - (#20)
  • Optional serde feature - (#34)
  • Consolidate common prelude for std and no_std and usage - (#33)
  • Add informational field type name - (#30)
  • Unify transparent wrapper types e.g. references - (#26)
  • Bump parity-scale-codec from 1.0 to 2.0 (#55)

Fixed

  • Fix type name scrubbing to handle nested tuples - (#47)

[0.4.1] - 2020-10-11

Fixed

  • Add missing extern crate proc_macro; (#22)

[0.4.0] - 2020-10-05

Added

  • Add public getters for fields in meta type hierarchy (#22)
  • Implement SCALE encoding and serde deserialization (#19)

[0.3.0] - 2020-07-03

Changed

  • Remove string table, inline strings (#17)

[0.2.0] - 2020-06-17

Changed

  • Remove Metadata supertrait (#15)
  • Unflatten JSON for type def field (#14)
  • Improve intra doc links

[0.1.0] - 2020-06-12

Added

  • First release