Releases: TedDriggs/darling
Releases · TedDriggs/darling
v0.23.0
v0.22.0
YANKED Pinned dependencies made this version cause conflicts with other crates.
- BREAKING: Remove
fnvdependency, as runtime performance gain does not justify additional dependency. This was exposed to users ofdarling::usage, so it may be breaking for them #373 - Add
#[darling(default = || expr(val))]support, allowing a closure where a path was previously required #380 - Preserve span information for paths given to
darling::util::Callableas literal strings - Fix some documentation typos
v0.21.3
v0.21.2
- Add
#[darling(from_expr = ...)]when derivingFromMetato 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 thegenericsfield 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
attributesandforward_attrs. #336 - Support parsing attributes which contain keywords #238
- Add
SpannedValue::into_inner#342 - Add
#[darling(derive_syn_parse)]to also implsyn::parse::Parsewhen derivingFromMeta#285 - Make
impl FromMeta for syn::TypePathsupport both quote-wrapped and bare values #351 - Add
util::PreservedStrExpr#346 - Impl
UsesTypeParamsandUsesLifetimesforWithOriginal#215 - Update error message emitted by
<() as FromMeta>::from_listto allow use of()as a#[darling(flatten)]target #353
v0.20.11
- Support
#[darling(with = ...)]on thedatafield when derivingFromDeriveInput. This allows the use of simpler receiver types, such as aVecof enum variants. - Bump version of
proc-macro2to 1.0.86. - Accept closures for
#[darling(with = ...)]on fields inFromDeriveInput,FromMeta,FromField, etc. #309 - Add
darling::util::Callableto 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
FromMetaimpl forsyn::ExprRange#329