17ac06127Sopenharmony_ci[package] 27ac06127Sopenharmony_ciname = "proc-macro2" 37ac06127Sopenharmony_civersion = "1.0.76" 47ac06127Sopenharmony_ciauthors = ["David Tolnay <dtolnay@gmail.com>", "Alex Crichton <alex@alexcrichton.com>"] 57ac06127Sopenharmony_ciautobenches = false 67ac06127Sopenharmony_cicategories = ["development-tools::procedural-macro-helpers"] 77ac06127Sopenharmony_cidescription = "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case." 87ac06127Sopenharmony_cidocumentation = "https://docs.rs/proc-macro2" 97ac06127Sopenharmony_ciedition = "2021" 107ac06127Sopenharmony_cikeywords = ["macros", "syn"] 117ac06127Sopenharmony_cilicense = "MIT OR Apache-2.0" 127ac06127Sopenharmony_cirepository = "https://github.com/dtolnay/proc-macro2" 137ac06127Sopenharmony_cirust-version = "1.56" 147ac06127Sopenharmony_ci 157ac06127Sopenharmony_ci[package.metadata.docs.rs] 167ac06127Sopenharmony_cirustc-args = ["--cfg", "procmacro2_semver_exempt"] 177ac06127Sopenharmony_cirustdoc-args = ["--cfg", "procmacro2_semver_exempt", "--cfg", "doc_cfg", "--generate-link-to-definition"] 187ac06127Sopenharmony_citargets = ["x86_64-unknown-linux-gnu"] 197ac06127Sopenharmony_ci 207ac06127Sopenharmony_ci[package.metadata.playground] 217ac06127Sopenharmony_cifeatures = ["span-locations"] 227ac06127Sopenharmony_ci 237ac06127Sopenharmony_ci[dependencies] 247ac06127Sopenharmony_ciunicode-ident = "1.0" 257ac06127Sopenharmony_ci 267ac06127Sopenharmony_ci[dev-dependencies] 277ac06127Sopenharmony_ciquote = { version = "1.0", default_features = false } 287ac06127Sopenharmony_cirustversion = "1" 297ac06127Sopenharmony_ci 307ac06127Sopenharmony_ci[features] 317ac06127Sopenharmony_ciproc-macro = [] 327ac06127Sopenharmony_cidefault = ["proc-macro"] 337ac06127Sopenharmony_ci 347ac06127Sopenharmony_ci# Expose methods Span::start and Span::end which give the line/column location 357ac06127Sopenharmony_ci# of a token. 367ac06127Sopenharmony_cispan-locations = [] 377ac06127Sopenharmony_ci 387ac06127Sopenharmony_ci# This feature no longer means anything. 397ac06127Sopenharmony_cinightly = [] 407ac06127Sopenharmony_ci 417ac06127Sopenharmony_ci[lib] 427ac06127Sopenharmony_cidoc-scrape-examples = false 437ac06127Sopenharmony_ci 447ac06127Sopenharmony_ci[workspace] 457ac06127Sopenharmony_cimembers = ["benches/bench-libproc-macro", "tests/ui"] 467ac06127Sopenharmony_ci 477ac06127Sopenharmony_ci[patch.crates-io] 487ac06127Sopenharmony_ci# Our doc tests depend on quote which depends on proc-macro2. Without this line, 497ac06127Sopenharmony_ci# the proc-macro2 dependency of quote would be the released version of 507ac06127Sopenharmony_ci# proc-macro2. Quote would implement its traits for types from that proc-macro2, 517ac06127Sopenharmony_ci# meaning impls would be missing when tested against types from the local 527ac06127Sopenharmony_ci# proc-macro2. 537ac06127Sopenharmony_ci# 547ac06127Sopenharmony_ci# GitHub Actions builds that are in progress at the time that you publish may 557ac06127Sopenharmony_ci# spuriously fail. This is because they'll be building a local proc-macro2 which 567ac06127Sopenharmony_ci# carries the second-most-recent version number, pulling in quote which resolves 577ac06127Sopenharmony_ci# to a dependency on the just-published most recent version number. Thus the 587ac06127Sopenharmony_ci# patch will fail to apply because the version numbers are different. 597ac06127Sopenharmony_ciproc-macro2 = { path = "." } 60