Skip to content

Releases: dtolnay/syn

0.12.9

23 Jan 08:58
0.12.9
6044da3
Compare
Choose a tag to compare
  • Expose parse_quote! macro whether or not the "printing" feature is enabled

0.12.8

23 Jan 08:58
0.12.8
fe859fe
Compare
Choose a tag to compare

(yanked)

0.12.7

19 Jan 07:27
0.12.7
24a58fd
Compare
Choose a tag to compare
  • Support attributes on fields in a struct initializer expression (#334)

0.12.6

17 Jan 19:03
0.12.6
bcf16a5
Compare
Choose a tag to compare
  • Add method to iterate over the fields in a Fields regardless of whether they are named or unnamed (#324, thanks @sgrif)
  • Expose iterator methods on Generics to iterate over just the type parameters, just the lifetime parameters, or just the const parameters (#327, thanks @sgrif)

0.12.5

12 Jan 04:14
0.12.5
c610211
Compare
Choose a tag to compare
  • Add From<Span> for all tokens (#279, thanks @kdy1)

0.12.4

12 Jan 01:18
0.12.4
0f9c5cc
Compare
Choose a tag to compare
  • Expose Parser trait as a way to invoke parser functions
  • Allow parse_quote! macro to parse more syntax tree types
  • Add Punctuated::insert method
  • Print generic parameters and generic arguments in the right order regardless of how they are ordered in the syntax tree

0.12.3

12 Jan 01:16
0.12.3
441a7aa
Compare
Choose a tag to compare
  • Provide ToTokens for Member without needing the "full" feature
  • Provide Copy and Clone impls for Lifetime without a feature gate
  • Fix parsing of lifetimes as generic arguments

0.12.2

12 Jan 01:15
0.12.2
3c4cbf6
Compare
Choose a tag to compare
  • Allow collecting an iterator of T into Punctuated<T, P> where P: Default

0.12.1

12 Jan 01:14
0.12.1
9a0961a
Compare
Choose a tag to compare
  • Allow indexing into a Punctuated using square brackets

0.12.0

12 Jan 01:14
0.12.0
152eb18
Compare
Choose a tag to compare
  • Rewrite to process Macros 2.0-style token streams rather than strings of source code. See the readme and release announcement.