1[package] 2name = "proc-macro2" 3version = "1.0.4" # remember to update html_root_url 4authors = ["Alex Crichton <alex@alexcrichton.com>"] 5license = "MIT OR Apache-2.0" 6readme = "README.md" 7keywords = ["macros"] 8repository = "https://github.com/alexcrichton/proc-macro2" 9homepage = "https://github.com/alexcrichton/proc-macro2" 10documentation = "https://docs.rs/proc-macro2" 11edition = "2018" 12description = """ 13A stable implementation of the upcoming new `proc_macro` API. Comes with an 14option, off by default, to also reimplement itself in terms of the upstream 15unstable API. 16""" 17 18[lib] 19name = "proc_macro2" 20 21[package.metadata.docs.rs] 22rustc-args = ["--cfg", "procmacro2_semver_exempt"] 23rustdoc-args = ["--cfg", "procmacro2_semver_exempt"] 24 25[dependencies] 26unicode-xid = "0.2" 27 28[dev-dependencies] 29quote = { version = "1.0", default_features = false } 30 31[features] 32proc-macro = [] 33default = ["proc-macro"] 34 35# Expose methods Span::start and Span::end which give the line/column location 36# of a token. 37span-locations = [] 38 39# This feature no longer means anything. 40nightly = [] 41 42[badges] 43travis-ci = { repository = "alexcrichton/proc-macro2" } 44 45[patch.crates-io] 46# Our doc tests depend on quote which depends on proc-macro2. Without this line, 47# the proc-macro2 dependency of quote would be the released version of 48# proc-macro2. Quote would implement its traits for types from that proc-macro2, 49# meaning impls would be missing when tested against types from the local 50# proc-macro2. 51# 52# Travis builds that are in progress at the time that you publish may spuriously 53# fail. This is because they'll be building a local proc-macro2 which carries 54# the second-most-recent version number, pulling in quote which resolves to a 55# dependency on the just-published most recent version number. Thus the patch 56# will fail to apply because the version numbers are different. 57proc-macro2 = { path = "." } 58