David Tolnay | 48d27c3 | 2018-01-02 22:33:11 -0800 | [diff] [blame] | 1 | ### [`dump-syntax`](dump-syntax) |
| 2 | |
| 3 | Little utility to parse a Rust source file into a `syn::File` and print out a |
| 4 | debug representation of the syntax tree. |
| 5 | |
| 6 | ### [`heapsize`](heapsize) |
| 7 | |
David Tolnay | 3be1b78 | 2018-10-28 17:41:41 -0700 | [diff] [blame] | 8 | A complete working implementation of a custom derive. Works on any Rust compiler |
David Tolnay | b4f5724 | 2018-10-28 17:57:08 -0700 | [diff] [blame] | 9 | 1.15+. |
David Tolnay | 3c383c1 | 2018-01-04 11:47:24 -0800 | [diff] [blame] | 10 | |
| 11 | ### [`lazy-static`](lazy-static) |
| 12 | |
| 13 | An example of parsing a custom syntax within a `functionlike!(...)` procedural |
| 14 | macro. Demonstrates how to trigger custom warnings and error messages on |
| 15 | individual tokens of the input. |
David Tolnay | 56be665 | 2018-01-06 15:55:29 -0800 | [diff] [blame] | 16 | |
| 17 | ### [`trace-var`](trace-var) |
| 18 | |
| 19 | An attribute procedural macro that uses a syntax tree traversal to transform |
| 20 | certain syntax tree nodes in a function body. |