Skip to content

Releases: dtolnay/syn

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

0.8.0

27 Sep 17:44
0.8.0
a3faf25
Compare
Choose a tag to compare

This release bumps the quote dependency to 0.2 which changes the handling of primitive integer and floating point types to match the behavior of quasi.

let int: u64 = 100;
quote!(#int)

In 0.1 this would quote as "100". In 0.2 it quotes as "100u64". Similar for i8, i16, i32, i64, isize, u8, u16, u32, usize, f32, f64.

0.7.1

27 Sep 17:42
0.7.1
adf1d50
Compare
Choose a tag to compare
0.7.1 Pre-release
Pre-release
Release 0.7.1

0.7.0

24 Sep 16:35
0.7.0
5a06475
Compare
Choose a tag to compare
0.7.0 Pre-release
Pre-release
Release 0.7.0