Skip to content

Releases: dtolnay/syn

0.9.2

20 Oct 16:06
0.9.2
a842db7
Compare
Choose a tag to compare

0.9.1

18 Oct 07:56
0.9.1
edea33f
Compare
Choose a tag to compare

0.9.0

08 Oct 22:51
0.9.0
f8f4307
Compare
Choose a tag to compare
  • Enum discriminant values and array lengths now support expressions instead of just usize literals (#31).
  • Update quote dependency to 0.3. Make sure to check those release notes for an important update affecting repetitions.
  • Lots of progress on parsing Rust syntax beyond structs and enums (#4).

0.8.7

05 Oct 07:16
0.8.7
05205da
Compare
Choose a tag to compare
let (impl_generics, ty_generics, where_clause) = generics.split_for_impl();

quote! {
    impl #impl_generics MyTrait for #name #ty_generics #where_clause {
        // ...
    }
}

0.8.6

03 Oct 16:23
0.8.6
f8068be
Compare
Choose a tag to compare
  • Add VariantData::fields_mut to view the fields of a struct or tuple variant as a mutable slice (#26)

0.8.5

02 Oct 17:14
0.8.5
176d8a9
Compare
Choose a tag to compare

Some helper functions to simplify working with lifetimes and attributes:

  • Lifetime::new("'a") -> Lifetime
  • LifetimeDef::new("'a") -> LifetimeDef
  • attribute.name() -> &str (equivalent to the previously existing attribute.value.name())

0.8.4

01 Oct 15:36
0.8.4
bd61b72
Compare
Choose a tag to compare
  • Parsing for raw string literals like r"..." and r##"..."##.

0.8.3

01 Oct 15:36
0.8.3
83d3629
Compare
Choose a tag to compare

(yanked)

0.8.2

01 Oct 08:21
0.8.2
87649ac
Compare
Choose a tag to compare

0.8.1

01 Oct 04:08
0.8.1
eae163f
Compare
Choose a tag to compare
  • Workaround for a compiler bug when building in release mode with rustc 1.12.0. Versions before and after 1.12.0 were not affected. rust-lang/rust#36875