2017-05-20 00:51:59 +00:00
|
|
|
[package]
|
|
|
|
name = "proc-macro2"
|
2019-05-08 20:39:08 +00:00
|
|
|
version = "0.4.30" # remember to update html_root_url
|
2017-05-20 00:51:59 +00:00
|
|
|
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
2019-05-09 22:26:36 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2017-07-06 01:01:47 +00:00
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["macros"]
|
|
|
|
repository = "https://github.com/alexcrichton/proc-macro2"
|
|
|
|
homepage = "https://github.com/alexcrichton/proc-macro2"
|
|
|
|
documentation = "https://docs.rs/proc-macro2"
|
2018-08-12 06:58:40 +00:00
|
|
|
build = "build.rs"
|
2017-07-06 01:01:47 +00:00
|
|
|
description = """
|
|
|
|
A stable implementation of the upcoming new `proc_macro` API. Comes with an
|
|
|
|
option, off by default, to also reimplement itself in terms of the upstream
|
|
|
|
unstable API.
|
|
|
|
"""
|
2017-05-20 00:51:59 +00:00
|
|
|
|
2018-06-04 07:55:42 +00:00
|
|
|
[package.metadata.docs.rs]
|
2018-11-11 19:31:43 +00:00
|
|
|
rustc-args = ["--cfg", "procmacro2_semver_exempt"]
|
2018-06-04 07:55:42 +00:00
|
|
|
rustdoc-args = ["--cfg", "procmacro2_semver_exempt"]
|
|
|
|
|
2017-05-20 00:51:59 +00:00
|
|
|
[dependencies]
|
2017-06-03 19:17:33 +00:00
|
|
|
unicode-xid = "0.1"
|
2017-05-20 00:51:59 +00:00
|
|
|
|
2018-11-11 21:00:51 +00:00
|
|
|
[dev-dependencies]
|
|
|
|
quote = "0.6"
|
|
|
|
|
2017-05-20 00:51:59 +00:00
|
|
|
[features]
|
2018-02-22 14:15:13 +00:00
|
|
|
proc-macro = []
|
|
|
|
default = ["proc-macro"]
|
2018-08-07 07:22:29 +00:00
|
|
|
|
2019-01-28 20:22:11 +00:00
|
|
|
# Expose methods Span::start and Span::end which give the line/column location
|
|
|
|
# of a token.
|
|
|
|
span-locations = []
|
|
|
|
|
2019-01-05 20:23:17 +00:00
|
|
|
# This feature no longer means anything.
|
|
|
|
nightly = []
|
|
|
|
|
2018-08-07 07:22:29 +00:00
|
|
|
[badges]
|
|
|
|
travis-ci = { repository = "alexcrichton/proc-macro2" }
|
2018-11-11 21:00:51 +00:00
|
|
|
|
|
|
|
[patch.crates-io]
|
|
|
|
# Our doc tests depend on quote which depends on proc-macro2. Without this line,
|
|
|
|
# the proc-macro2 dependency of quote would be the released version of
|
|
|
|
# proc-macro2. Quote would implement its traits for types from that proc-macro2,
|
|
|
|
# meaning impls would be missing when tested against types from the local
|
|
|
|
# proc-macro2.
|
2019-01-20 05:04:40 +00:00
|
|
|
#
|
|
|
|
# When publishing proc-macro2, Cargo will forbid publishing with a patch
|
|
|
|
# section. You need to delete this section and then publish with --allow-dirty.
|
2019-01-20 05:05:08 +00:00
|
|
|
# A PR https://github.com/rust-lang/cargo/pull/6535 proposes to make it no
|
|
|
|
# longer an error to publish with a patch section.
|
2019-01-20 05:07:34 +00:00
|
|
|
#
|
|
|
|
# Travis builds that are in progress at the time that you publish may spuriously
|
|
|
|
# fail. This is because they'll be building a local proc-macro2 which carries
|
|
|
|
# the second-most-recent version number, pulling in quote which resolves to a
|
|
|
|
# dependency on the just-published most recent version number. Thus the patch
|
|
|
|
# will fail to apply because the version numbers are different.
|
2018-11-11 21:00:51 +00:00
|
|
|
proc-macro2 = { path = "." }
|