Skip to content

Latest commit

 

History

History
106 lines (83 loc) · 3.81 KB

CHANGELOG.md

File metadata and controls

106 lines (83 loc) · 3.81 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.

0.10.1 - 2024-08-27

Fixed

  • removed accidental debug prints

0.10.0 - 2024-08-13

Added

  • derive AttributeIdent by default, converting the StructIdent to snake_case
  • AttributeIdent implementation for Option<impl AttributeIdent>

0.9.2 - 2024-06-22

Fixed

  • Partial type copies visibility from attribute struct

0.9.1 - 2024-03-23

Added

  • from_attribute and from_attribue_partial to FromAttr.
  • Support for tuple structs.

Fixed

  • FromAttr did not support #[flag] or #[name = value] attribute styles at the root.

0.9.0 - 2024-03-17

Added

  • Attributes can now be nested, i.e. #[outer(inner(key = value))].

Changed

  • Breaking Change added span to IdentValue, as this is mostly an implementation detail, most users need not worry about this change.
  • Breaking Change changed FromAttr::from_attributes to take [Borrow<Attribute>], only relevant for type inference.
  • Breaking Change TokenStream, when used as field in FromAttr now only supports <name>(<tokens>) syntax, <name>=<tokens> was removed.

Removed

  • Breaking Change mandatory flags
  • Breaking Change removed found_field in custom error messages

0.8.1 - 2023-09-27

Added

  • FlagOrValue::{is_none, is_flag, is_value, into_value, as_value}

0.8.0 - 2023-09-18

Changed

  • Renamed Attribute to FromAttr to not conflict with syn::Attribute. The old path is still exported (#[doc(hidden)] and deprecated). Existing usages should not break.

0.7.1 - 2023-09-17

Fixed

  • FlagOrValue only supported some syn types.

0.7.0 - 2023-09-17

  • Updated dependencies

Added

  • FlagOrValue to support a value both as a Flag and a Value

Changed

  • bool now allows specifying a flag multiple times.

Fixed

  • Specifying a parameter multiple times in the same attribute was ignored.

0.6.1 - 2023-05-21

  • Updated dependencies

0.6.0 - 2023-03-20

Changed

  • Updated syn to v2

0.5.0 - 2023-03-02

Added

  • IdentValue to keep hold of both value and the source ident

Changed

  • Breaking Change: ConvertParsed::aggregate() now takes/returns IdentValue
  • Improved span for conflicting values

0.4.0 - 2023-03-02

Changed

  • Breaking Change: Moved some syn types behind feature full
  • Breaking Change: Refactored attributes
  • Use interpolator for error messages
  • Breaking Change: Compile time verify if ident is given through helper trait