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.3 - 2024-11-17
- fix imports in
impl_Attribute_for_Parse_and_ToTokens!
- allow
#[from_attr]
on top of#[attribute]
0.10.2 - 2024-10-30
- published
impl_Attribute_for_Parse_and_ToTokens!
to "derive"AttributeValue
traits via existingParse
andToTokens
implementation.
0.10.1 - 2024-08-27
- removed accidental debug prints
0.10.0 - 2024-08-13
- derive
AttributeIdent
by default, converting theStructIdent
tosnake_case
AttributeIdent
implementation forOption<impl AttributeIdent>
0.9.2 - 2024-06-22
- Partial type copies visibility from attribute struct
0.9.1 - 2024-03-23
from_attribute
andfrom_attribue_partial
toFromAttr
.- Support for tuple structs.
FromAttr
did not support#[flag]
or#[name = value]
attribute styles at the root.
0.9.0 - 2024-03-17
- Attributes can now be nested, i.e.
#[outer(inner(key = value))]
.
- Breaking Change added
span
toIdentValue
, 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 inFromAttr
now only supports<name>(<tokens>)
syntax,<name>=<tokens>
was removed.
- Breaking Change mandatory flags
- Breaking Change removed
found_field
in custom error messages
0.8.1 - 2023-09-27
FlagOrValue::{is_none, is_flag, is_value, into_value, as_value}
0.8.0 - 2023-09-18
- Renamed
Attribute
toFromAttr
to not conflict withsyn::Attribute
. The old path is still exported (#[doc(hidden)]
and deprecated). Existing usages should not break.
0.7.1 - 2023-09-17
FlagOrValue
only supported somesyn
types.
0.7.0 - 2023-09-17
- Updated dependencies
FlagOrValue
to support a value both as a Flag and a Value
bool
now allows specifying a flag multiple times.
- 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
- Updated
syn
to v2
0.5.0 - 2023-03-02
IdentValue
to keep hold of both value and the source ident
- Breaking Change:
ConvertParsed::aggregate()
now takes/returnsIdentValue
- Improved span for conflicting values
0.4.0 - 2023-03-02
- 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