Skip to content

Releases: TedDriggs/darling

v0.14.2

26 Oct 19:40
Compare
Choose a tag to compare
  • 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

08 Sep 19:46
Compare
Choose a tag to compare
  • 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

13 Apr 16:45
Compare
Choose a tag to compare
  • 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

06 Apr 14:13
Compare
Choose a tag to compare
  • Impl FromMeta for syn::Visibility #173

v0.13.3

06 Apr 14:03
Compare
Choose a tag to compare
  • Add error::Accumulator #164
  • Impl FromMeta for syn::Type and its newtype variants #172

v0.13.2

01 Apr 14:08
Compare
Choose a tag to compare
  • Impl FromMeta for syn::ExprPath #170

v0.13.1

07 Dec 14:33
Compare
Choose a tag to compare
  • Add FromAttributes trait and macro #151

New Contributors

v0.13.0

03 Aug 13:23
Compare
Choose a tag to compare
  • 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

20 Apr 20:05
Compare
Choose a tag to compare
  • Add #[darling(and_then = "...")] as an alternative to #[darling(map = "...")]

v0.12.3

08 Apr 14:04
Compare
Choose a tag to compare
  • Fix FromMeta impl for char #126