Skip to content

Releases: TedDriggs/darling

v0.8.5

04 Feb 21:30
Compare
Choose a tag to compare
  • Accept unquoted positive numeric literals #52
  • Add FromMeta to the syn::Lit enum and its variants
  • Improve error message for unexpected literal formats to not say "other"

v0.8.4

04 Feb 17:24
Compare
Choose a tag to compare
  • Substantially overhaul errors #39
  • Add support for ignoring unknown fields in an otherwise-parsed attribute
  • Add span information to errors

v0.8.3

22 Jan 00:50
Compare
Choose a tag to compare

Add Span support to darling::Error in preparation for proc-macros being allowed to emit diagnostics. This change will cause errors encountered by darling to point to the right locations in user source code, which will make darling-backed crates much more ergonomic to use.

v0.8.0

02 Oct 00:45
Compare
Choose a tag to compare
  • Update syn to 0.15 #44. Thanks to @hcpl

v0.7.0

24 Jul 15:32
Compare
Choose a tag to compare
  • Update dependencies on serde and proc-macro2
  • Add IdentString to handle cases where code needs to treat idents as strings

v0.6.3

23 May 00:36
Compare
Choose a tag to compare

Extend the coverage of UsesTypeParams and UsesLifetimes

v0.6.2

22 May 21:41
Compare
Choose a tag to compare

Add the usage module, with UsesTypeParams and UsesLifetimes. These traits help track usage of generic parameters throughout a proc-macro input, simplifying bounding or generation of derivative structs. See #40 and #41

v0.6.1

17 May 22:07
Compare
Choose a tag to compare
  • Fixed an issue with supports(struct_*) caused by the syn upgrade, and added tests to make sure it doesn't break again.

v0.6.0

16 May 00:04
f1b59e2
Compare
Choose a tag to compare

Rename FromMetaItem to FromMeta

v0.5.0

11 May 00:31
Compare
Choose a tag to compare
  • Add ast::Generics and ast::GenericParam to work with generics in a manner similar to ast::Data
  • Add ast::GenericParamExt to support alternate representations of generic parameters
  • Add util::WithOriginal to get a parsed representation and syn's own struct for a syntax block
  • Add FromGenerics and FromGenericParam traits (without derive support)
  • Change generated code for generics magic field to invoke FromGenerics trait during parsing
  • Add FromTypeParam trait #30. Thanks to @upsuper