Alex Crichton | 803720f | 2017-05-19 19:41:03 -0700 | [diff] [blame^] | 1 | # proc-macro2 |
| 2 | |
| 3 | [Documentation](http://alexcrichton.com/proc-macro2) |
| 4 | |
| 5 | A small shim over the `proc_macro` crate intended to multiplex the current |
| 6 | stable interface (as of 2017-05-19) and the [upcoming richer |
| 7 | interface][upcoming]. |
| 8 | |
| 9 | [upcoming]: https://github.com/rust-lang/rust/pull/40939 |
| 10 | |
| 11 | The 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 | |
| 17 | My hope is that libraries ported to `proc_macro2` will be trivial to port to the |
| 18 | real `proc_macro` crate once the support on nightly is stabilize. |
| 19 | |
| 20 | This 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 |
| 25 | the Apache License (Version 2.0), with portions covered by various BSD-like |
| 26 | licenses. |
| 27 | |
| 28 | See LICENSE-APACHE, and LICENSE-MIT for details. |