Debian Codegraph @

.cargo/vendor/proc-macro2/Cargo.toml.orig

raw
1 [package]
2 name = "proc-macro2"
3 version = "1.0.104"
4 authors = ["David Tolnay <[email protected]>", "Alex Crichton <[email protected]>"]
5 autobenches = false
6 categories = ["development-tools::procedural-macro-helpers"]
7 description = "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case."
8 documentation = "https://docs.rs/proc-macro2"
9 edition = "2021"
10 keywords = ["macros", "syn"]
11 license = "MIT OR Apache-2.0"
12 repository = "https://github.com/dtolnay/proc-macro2"
13 rust-version = "1.68"
14
15 [package.metadata.docs.rs]
16 rustc-args = ["--cfg=procmacro2_semver_exempt"]
17 targets = ["x86_64-unknown-linux-gnu"]
18 rustdoc-args = [
19 "--cfg=procmacro2_semver_exempt",
20 "--generate-link-to-definition",
21 "--generate-macro-expansion",
22 "--extern-html-root-url=core=https://doc.rust-lang.org",
23 "--extern-html-root-url=alloc=https://doc.rust-lang.org",
24 "--extern-html-root-url=std=https://doc.rust-lang.org",
25 "--extern-html-root-url=proc_macro=https://doc.rust-lang.org",
26 ]
27
28 [package.metadata.playground]
29 features = ["span-locations"]
30
31 [dependencies]
32 unicode-ident = "1.0"
33
34 [dev-dependencies]
35 flate2 = "1.0"
36 quote = { version = "1.0", default-features = false }
37 rayon = "1.0"
38 rustversion = "1"
39 tar = "0.4"
40
41 [features]
42 proc-macro = []
43 default = ["proc-macro"]
44
45 # Expose methods Span::start and Span::end which give the line/column location
46 # of a token.
47 span-locations = []
48
49 # This feature no longer means anything.
50 nightly = []
51
52 [workspace]
53 members = ["benches/bench-libproc-macro", "tests/ui"]
54
55 [patch.crates-io]
56 # Our doc tests depend on quote which depends on proc-macro2. Without this line,
57 # the proc-macro2 dependency of quote would be the released version of
58 # proc-macro2. Quote would implement its traits for types from that proc-macro2,
59 # meaning impls would be missing when tested against types from the local
60 # proc-macro2.
61 #
62 # GitHub Actions builds that are in progress at the time that you publish may
63 # spuriously fail. This is because they'll be building a local proc-macro2 which
64 # carries the second-most-recent version number, pulling in quote which resolves
65 # to a dependency on the just-published most recent version number. Thus the
66 # patch will fail to apply because the version numbers are different.
67 proc-macro2 = { path = "." }