tree: 66aecabfd88610377c6a9a64956f6e811d91edba [path history] [tgz]
  1. dump-syntax/
  2. heapsize/
  3. heapsize2/
  4. lazy-static/
  5. README.md
examples/README.md

dump-syntax

Little utility to parse a Rust source file into a syn::File and print out a debug representation of the syntax tree.

heapsize

A complete working Macros 1.1 implementation of a custom derive. Works on any Rust compiler >=1.15.0.

heapsize2

The equivalent of the previous example but using fancy new APIs from the nightly compiler. It illustrates some neat features of the hygiene system of Macros 2.0 and shows how to leverage those to provide amazing error messages to users. Currently requires a nightly Rust compiler >=1.24.0-nightly but we are working to stabilize all of the APIs involved.