Skip to content

Releases: dtolnay/syn

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.

0.11.11

20 Apr 17:16
0.11.11
2134cc2
Compare
Choose a tag to compare

0.11.10

20 Apr 17:14
0.11.10
90c07ea
Compare
Choose a tag to compare
  • Provide Ord and PartialOrd impls for Ident and Lifetime, allowing them to be used in a BTreeSet

0.11.9

06 Mar 16:47
0.11.9
5e42499
Compare
Choose a tag to compare
  • Expose syn::parse_inner_attr and syn::parse_outer_attr (#105, thanks @colin-kiegel)