Skip to content

Releases: dtolnay/syn

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)

0.11.8

06 Mar 16:46
0.11.8
01bb615
Compare
Choose a tag to compare
  • Parse any possible enum discriminant when using "full" feature (#98, thanks @SimonSapin)

0.11.7

06 Mar 16:44
0.11.7
f8ed9a9
Compare
Choose a tag to compare
  • Expose synom parsers for pat, block, stmt

0.11.6

19 Feb 21:10
0.11.6
2ce94ed
Compare
Choose a tag to compare
  • Drop Clippy dependency to break an import cycle of syn -> clippy -> cargo_metadata -> serde_derive -> syn causing trouble on docs.rs

0.11.5

19 Feb 21:05
0.11.5
b7defb7
Compare
Choose a tag to compare
  • Implement an AST folder, syn::fold::Folder (#85, thanks @gnzlbg)

  • Expose parsers and parser combinators for parsing custom function-like macro input

    extern crate syn;
    #[macro_use] extern crate synom;
    
    use syn::Expr;
    use syn::parse::expr;
    
    // An expression surrounded by [[ ... ]].
    named!(double_bracket_expr -> Expr,
        delimited!(punct!("[["), expr, punct!("]]"))
    );
    
    fn main() {
        let input = "[[ 1 + 1 ]]";
    
        let parsed = double_bracket_expr(input).expect("double bracket expr");
    
        println!("{:?}", parsed);
    }

0.11.4

26 Jan 00:05
0.11.4
b67c0b7
Compare
Choose a tag to compare

0.10.8

19 Feb 19:26
0.10.8
fea1ef4
Compare
Choose a tag to compare
  • Clean up a botched merge (#84)

0.11.3

26 Jan 00:04
0.11.3
b95f685
Compare
Choose a tag to compare

(yanked)

0.11.2

26 Jan 00:04
0.11.2
3503af7
Compare
Choose a tag to compare

(yanked)