2017-05-20 00:51:59 +00:00
|
|
|
[package]
|
2019-08-13 16:00:51 +00:00
|
|
|
name = "proc-macro2"
|
2023-03-22 05:54:09 +00:00
|
|
|
version = "1.0.53" # remember to update html_root_url
|
2021-10-26 17:48:19 +00:00
|
|
|
authors = ["David Tolnay <dtolnay@gmail.com>", "Alex Crichton <alex@alexcrichton.com>"]
|
2021-12-26 21:18:07 +00:00
|
|
|
autobenches = false
|
2022-08-01 02:19:04 +00:00
|
|
|
categories = ["development-tools::procedural-macro-helpers"]
|
2022-08-01 02:21:45 +00:00
|
|
|
description = "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case."
|
2022-08-01 02:19:04 +00:00
|
|
|
documentation = "https://docs.rs/proc-macro2"
|
|
|
|
edition = "2018"
|
2022-08-02 17:38:56 +00:00
|
|
|
keywords = ["macros", "syn"]
|
2022-08-01 02:19:04 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
repository = "https://github.com/dtolnay/proc-macro2"
|
|
|
|
rust-version = "1.31"
|
2019-07-19 18:46:51 +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"]
|
2021-03-30 05:34:17 +00:00
|
|
|
rustdoc-args = ["--cfg", "procmacro2_semver_exempt", "--cfg", "doc_cfg"]
|
2020-03-17 20:35:03 +00:00
|
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
2018-06-04 07:55:42 +00:00
|
|
|
|
2020-03-30 18:02:28 +00:00
|
|
|
[package.metadata.playground]
|
|
|
|
features = ["span-locations"]
|
|
|
|
|
2017-05-20 00:51:59 +00:00
|
|
|
[dependencies]
|
2022-05-16 22:27:01 +00:00
|
|
|
unicode-ident = "1.0"
|
2017-05-20 00:51:59 +00:00
|
|
|
|
2018-11-11 21:00:51 +00:00
|
|
|
[dev-dependencies]
|
2019-09-01 01:40:46 +00:00
|
|
|
quote = { version = "1.0", default_features = false }
|
2023-03-11 22:36:48 +00:00
|
|
|
rustversion = "1"
|
2018-11-11 21:00:51 +00:00
|
|
|
|
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 = []
|
|
|
|
|
2022-12-18 17:30:26 +00:00
|
|
|
[lib]
|
|
|
|
doc-scrape-examples = false
|
|
|
|
|
2019-10-04 01:07:09 +00:00
|
|
|
[workspace]
|
2020-09-09 18:02:05 +00:00
|
|
|
members = ["benches/bench-libproc-macro", "tests/ui"]
|
2019-10-04 01:07:09 +00:00
|
|
|
|
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
|
|
|
#
|
2020-05-02 01:10:48 +00:00
|
|
|
# GitHub Actions 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.
|
2019-08-13 16:00:51 +00:00
|
|
|
proc-macro2 = { path = "." }
|