1 | [package] |
2 | name = "syn" |
3 | version = "2.0.53" # don't forget to update html_root_url and syn.json |
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.56" |
22 | |
23 | [features] |
24 | default = ["derive" , "parsing" , "printing" , "clone-impls" , "proc-macro" ] |
25 | derive = [] |
26 | full = [] |
27 | parsing = [] |
28 | printing = ["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.75" , 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 | flate2 = "1" |
46 | insta = "1" |
47 | rayon = "1" |
48 | ref-cast = "1" |
49 | reqwest = { version = "0.11" , features = ["blocking" ] } |
50 | rustversion = "1" |
51 | syn-test-suite = { version = "0" , path = "tests/features" } |
52 | tar = "0.4.16" |
53 | termcolor = "1" |
54 | walkdir = "2.3.2" |
55 | |
56 | [lib] |
57 | doc-scrape-examples = false |
58 | |
59 | [[bench]] |
60 | name = "rust" |
61 | harness = false |
62 | required-features = ["full" , "parsing" ] |
63 | |
64 | [[bench]] |
65 | name = "file" |
66 | required-features = ["full" , "parsing" ] |
67 | |
68 | [package.metadata.docs.rs] |
69 | all-features = true |
70 | targets = ["x86_64-unknown-linux-gnu" ] |
71 | rustdoc-args = ["--cfg" , "doc_cfg" , "--generate-link-to-definition" ] |
72 | |
73 | [package.metadata.playground] |
74 | features = ["full" , "visit" , "visit-mut" , "fold" , "extra-traits" ] |
75 | |
76 | [workspace] |
77 | members = [ |
78 | "dev" , |
79 | "examples/dump-syntax" , |
80 | "examples/heapsize/example" , |
81 | "examples/heapsize/heapsize" , |
82 | "examples/heapsize/heapsize_derive" , |
83 | "examples/lazy-static/example" , |
84 | "examples/lazy-static/lazy-static" , |
85 | "examples/trace-var/example" , |
86 | "examples/trace-var/trace-var" , |
87 | "tests/features" , |
88 | ] |
89 | |