[package]
name = "proc-macro2"
version = "1.0.36"
authors = ["David Tolnay <dtolnay@gmail.com>", "Alex Crichton <alex@alexcrichton.com>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["macros"]
repository = "https://github.com/dtolnay/proc-macro2"
documentation = "https://docs.rs/proc-macro2"
categories = ["development-tools::procedural-macro-helpers"]
edition = "2018"
autobenches = false
rust-version = "1.31"
description = """
A substitute implementation of the compiler's `proc_macro` API to decouple
token-based libraries from the procedural macro use case.
"""
[package.metadata.docs.rs]
rustc-args = ["--cfg", "procmacro2_semver_exempt"]
rustdoc-args = ["--cfg", "procmacro2_semver_exempt", "--cfg", "doc_cfg"]
targets = ["x86_64-unknown-linux-gnu"]
[package.metadata.playground]
features = ["span-locations"]
[dependencies]
unicode-xid = "0.2"
[dev-dependencies]
quote = { version = "1.0", default_features = false }
[features]
proc-macro = []
default = ["proc-macro"]
span-locations = []
nightly = []
[workspace]
members = ["benches/bench-libproc-macro", "tests/ui"]
[patch.crates-io]
proc-macro2 = { path = "." }