blob: efc7ea69fb59ecf1078891e23cd2f0485bf1c5ec [file] [log] [blame] [view]
Alex Crichton803720f2017-05-19 19:41:03 -07001# proc-macro2
2
3[Documentation](http://alexcrichton.com/proc-macro2)
4
5A small shim over the `proc_macro` crate intended to multiplex the current
6stable interface (as of 2017-05-19) and the [upcoming richer
7interface][upcoming].
8
9[upcoming]: https://github.com/rust-lang/rust/pull/40939
10
11The upcoming support has features like:
12
13* Span information on tokens
14* No need to go in/out through strings
15* Structured input/output
16
17My hope is that libraries ported to `proc_macro2` will be trivial to port to the
18real `proc_macro` crate once the support on nightly is stabilize.
19
20This crate is still very much a work in progress
21
22# License
23
24`proc-macro2` is primarily distributed under the terms of both the MIT license and
25the Apache License (Version 2.0), with portions covered by various BSD-like
26licenses.
27
28See LICENSE-APACHE, and LICENSE-MIT for details.