1 | [package] |
2 | name = "syn" |
3 | version = "1.0.109" # 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 = "2018" |
9 | include = [ |
10 | "/benches/**" , |
11 | "/build.rs" , |
12 | "/Cargo.toml" , |
13 | "/LICENSE-APACHE" , |
14 | "/LICENSE-MIT" , |
15 | "/README.md" , |
16 | "/src/**" , |
17 | "/tests/**" , |
18 | ] |
19 | keywords = ["macros" , "syn" ] |
20 | license = "MIT OR Apache-2.0" |
21 | repository = "https://github.com/dtolnay/syn" |
22 | rust-version = "1.31" |
23 | |
24 | [features] |
25 | default = ["derive" , "parsing" , "printing" , "clone-impls" , "proc-macro" ] |
26 | derive = [] |
27 | full = [] |
28 | parsing = [] |
29 | printing = ["quote" ] |
30 | visit = [] |
31 | visit-mut = [] |
32 | fold = [] |
33 | clone-impls = [] |
34 | extra-traits = [] |
35 | proc-macro = ["proc-macro2/proc-macro" , "quote/proc-macro" ] |
36 | test = ["syn-test-suite/all-features" ] |
37 | |
38 | [dependencies] |
39 | proc-macro2 = { version = "1.0.46" , default-features = false } |
40 | quote = { version = "1.0" , optional = true, default-features = false } |
41 | unicode-ident = "1.0" |
42 | |
43 | [dev-dependencies] |
44 | anyhow = "1.0" |
45 | automod = "1.0" |
46 | flate2 = "1.0" |
47 | insta = "1.0" |
48 | rayon = "1.0" |
49 | ref-cast = "1.0" |
50 | regex = "1.0" |
51 | reqwest = { version = "0.11" , features = ["blocking" ] } |
52 | syn-test-suite = { version = "0" , path = "tests/features" } |
53 | tar = "0.4.16" |
54 | termcolor = "1.0" |
55 | walkdir = "2.1" |
56 | |
57 | [lib] |
58 | doc-scrape-examples = false |
59 | |
60 | [[bench]] |
61 | name = "rust" |
62 | harness = false |
63 | required-features = ["full" , "parsing" ] |
64 | |
65 | [[bench]] |
66 | name = "file" |
67 | required-features = ["full" , "parsing" ] |
68 | |
69 | [package.metadata.docs.rs] |
70 | all-features = true |
71 | targets = ["x86_64-unknown-linux-gnu" ] |
72 | rustdoc-args = ["--cfg" , "doc_cfg" ] |
73 | |
74 | [package.metadata.playground] |
75 | features = ["full" , "visit" , "visit-mut" , "fold" , "extra-traits" ] |
76 | |
77 | [workspace] |
78 | members = [ |
79 | "dev" , |
80 | "examples/dump-syntax" , |
81 | "examples/heapsize/example" , |
82 | "examples/heapsize/heapsize" , |
83 | "examples/heapsize/heapsize_derive" , |
84 | "examples/lazy-static/example" , |
85 | "examples/lazy-static/lazy-static" , |
86 | "examples/trace-var/example" , |
87 | "examples/trace-var/trace-var" , |
88 | "json" , |
89 | "tests/crates" , |
90 | "tests/features" , |
91 | ] |
92 | |