1 | [package] |
2 | name = "syn" |
3 | version = "2.0.100" |
4 | authors = ["David Tolnay <dtolnay@gmail.com>" ] |
5 | categories = ["development-tools::procedural-macro-helpers" , "parser-implementations" ] |
6 | description = "Parser for Rust source code" |
7 | documentation = "https://docs.rs/syn" |
8 | edition = "2021" |
9 | include = [ |
10 | "/benches/**" , |
11 | "/Cargo.toml" , |
12 | "/LICENSE-APACHE" , |
13 | "/LICENSE-MIT" , |
14 | "/README.md" , |
15 | "/src/**" , |
16 | "/tests/**" , |
17 | ] |
18 | keywords = ["macros" , "syn" ] |
19 | license = "MIT OR Apache-2.0" |
20 | repository = "https://github.com/dtolnay/syn" |
21 | rust-version = "1.61" |
22 | |
23 | [features] |
24 | default = ["derive" , "parsing" , "printing" , "clone-impls" , "proc-macro" ] |
25 | derive = [] |
26 | full = [] |
27 | parsing = [] |
28 | printing = ["dep:quote" ] |
29 | visit = [] |
30 | visit-mut = [] |
31 | fold = [] |
32 | clone-impls = [] |
33 | extra-traits = [] |
34 | proc-macro = ["proc-macro2/proc-macro" , "quote?/proc-macro" ] |
35 | test = ["syn-test-suite/all-features" ] |
36 | |
37 | [dependencies] |
38 | proc-macro2 = { version = "1.0.91" , default-features = false } |
39 | quote = { version = "1.0.35" , optional = true, default-features = false } |
40 | unicode-ident = "1" |
41 | |
42 | [dev-dependencies] |
43 | anyhow = "1" |
44 | automod = "1" |
45 | insta = "1" |
46 | ref-cast = "1" |
47 | rustversion = "1" |
48 | syn-test-suite = { version = "0" , path = "tests/features" } |
49 | termcolor = "1" |
50 | |
51 | [target.'cfg(not(miri))'.dev-dependencies] |
52 | flate2 = "1" |
53 | rayon = "1" |
54 | reqwest = { version = "0.12" , features = ["blocking" ] } |
55 | tar = "0.4.16" |
56 | walkdir = "2.3.2" |
57 | |
58 | [[bench]] |
59 | name = "rust" |
60 | harness = false |
61 | required-features = ["full" , "parsing" ] |
62 | |
63 | [[bench]] |
64 | name = "file" |
65 | required-features = ["full" , "parsing" ] |
66 | |
67 | [package.metadata.docs.rs] |
68 | all-features = true |
69 | targets = ["x86_64-unknown-linux-gnu" ] |
70 | rustdoc-args = [ |
71 | "--generate-link-to-definition" , |
72 | "--extend-css=src/gen/token.css" , |
73 | "--extern-html-root-url=core=https://doc.rust-lang.org" , |
74 | "--extern-html-root-url=alloc=https://doc.rust-lang.org" , |
75 | "--extern-html-root-url=std=https://doc.rust-lang.org" , |
76 | "--extern-html-root-url=proc_macro=https://doc.rust-lang.org" , |
77 | ] |
78 | |
79 | [package.metadata.playground] |
80 | features = ["full" , "visit" , "visit-mut" , "fold" , "extra-traits" ] |
81 | |
82 | [workspace] |
83 | members = [ |
84 | "dev" , |
85 | "examples/dump-syntax" , |
86 | "examples/heapsize/example" , |
87 | "examples/heapsize/heapsize" , |
88 | "examples/heapsize/heapsize_derive" , |
89 | "examples/lazy-static/example" , |
90 | "examples/lazy-static/lazy-static" , |
91 | "examples/trace-var/example" , |
92 | "examples/trace-var/trace-var" , |
93 | "tests/features" , |
94 | ] |
95 | |