Releases: TedDriggs/darling
Releases · TedDriggs/darling
v0.14.2
- Derived impls of
FromMeta
will now error on literals, rather than silently ignoring them. #193
- Don't include property paths in compile errors when spans are available. #203
v0.14.1
- Fix a bug where using a trait that accepts #[darling(attributes(...))] without specifying any attributes would emit code that did not compile. #183
- Impl Clone for darling::Error #184
- Impl Fromdarling::Error for syn::Error #184
- Add Error::span and Error::explicit_span methods #184
v0.14.0
- BREAKING CHANGE: Remove many trait impls from
util::Flag
.
This type had a number of deref and operator impls that made it usable as sort-of-a-boolean.
Real-world usage showed this type is more useful if it's able to carry a span for good errors,
and that most of those impls were unnecessary. #179
- Remove need for
#[darling(default)]
on Option<T>
and Flag
fields #161
- Improve validation of enum shapes #178
- Bump
proc-macro2
dependency to 1.0.37 #180
- Bump
quote
dependency to 1.0.18 #180
- Bump
syn
dependency to 1.0.91 #180
v0.13.4
- Impl
FromMeta
for syn::Visibility
#173
v0.13.3
- Add
error::Accumulator
#164
- Impl
FromMeta
for syn::Type
and its newtype variants #172
v0.13.2
- Impl
FromMeta
for syn::ExprPath
#170
v0.13.1
- Add FromAttributes trait and macro #151
New Contributors
v0.13.0
- Bump edition to 2018
- Error on duplicate fields in #[darling(...)] attributes #130
- Impl Copy for SpannedValue<T: Copy>
- Add SpannedValue::map_ref
v0.12.4
- Add
#[darling(and_then = "...")]
as an alternative to #[darling(map = "...")]
v0.12.3
- Fix
FromMeta
impl for char
#126