Releases: TedDriggs/darling
Releases · TedDriggs/darling
v0.21.3
v0.21.2
- Add
#[darling(from_expr = ...)]
when derivingFromMeta
to support overriding the key-value form #369 - Keep parsing the body and type params even if there are errors from parsing attributes. #7
- Support
#[darling(with = ...)]
on thegenerics
field when derivingFromDeriveInput
. - Return an error, rather than panicking, when doing shape validation on a
union
. #365
v0.21.1
v0.21.0
- Potentially breaking: Emit error when an attribute path is present in both
attributes
andforward_attrs
. #336 - Support parsing attributes which contain keywords #238
- Add
SpannedValue::into_inner
#342 - Add
#[darling(derive_syn_parse)]
to also implsyn::parse::Parse
when derivingFromMeta
#285 - Make
impl FromMeta for syn::TypePath
support both quote-wrapped and bare values #351 - Add
util::PreservedStrExpr
#346 - Impl
UsesTypeParams
andUsesLifetimes
forWithOriginal
#215 - Update error message emitted by
<() as FromMeta>::from_list
to allow use of()
as a#[darling(flatten)]
target #353
v0.20.11
- Support
#[darling(with = ...)]
on thedata
field when derivingFromDeriveInput
. This allows the use of simpler receiver types, such as aVec
of enum variants. - Bump version of
proc-macro2
to 1.0.86. - Accept closures for
#[darling(with = ...)]
on fields inFromDeriveInput
,FromMeta
,FromField
, etc. #309 - Add
darling::util::Callable
to accept a path or closure as a meta-item expression - Add
#[darling(from_word = ...)]
and#[darling(from_none = ...)]
to control shorthand and fallback behaviors for structs and enums derivingFromMeta
#320 - Add
FromMeta
impl forsyn::ExprRange
#329