1[package]
2name = "syn"
3version = "1.0.69" # don't forget to update html_root_url and syn.json
4authors = ["David Tolnay <dtolnay@gmail.com>"]
5license = "MIT OR Apache-2.0"
6description = "Parser for Rust source code"
7repository = "https://github.com/dtolnay/syn"
8documentation = "https://docs.rs/syn"
9categories = ["development-tools::procedural-macro-helpers"]
10readme = "README.md"
11include = [
12    "/benches/**",
13    "/build.rs",
14    "/Cargo.toml",
15    "/LICENSE-APACHE",
16    "/LICENSE-MIT",
17    "/README.md",
18    "/src/**",
19    "/tests/**",
20]
21edition = "2018"
22
23[features]
24default = ["derive", "parsing", "printing", "clone-impls", "proc-macro"]
25derive = []
26full = []
27parsing = []
28printing = ["quote"]
29visit = []
30visit-mut = []
31fold = []
32clone-impls = []
33extra-traits = []
34proc-macro = ["proc-macro2/proc-macro", "quote/proc-macro"]
35test = ["syn-test-suite/all-features"]
36
37[dependencies]
38proc-macro2 = { version = "1.0.26", default-features = false }
39quote = { version = "1.0", optional = true, default-features = false }
40unicode-xid = "0.2"
41
42[dev-dependencies]
43anyhow = "1.0"
44flate2 = "1.0"
45insta = "1.0"
46rayon = "1.0"
47ref-cast = "1.0"
48regex = "1.0"
49reqwest = { version = "0.10", features = ["blocking"] }
50syn-test-suite = { version = "0", path = "tests/features" }
51tar = "0.4.16"
52termcolor = "1.0"
53walkdir = "2.1"
54
55[[bench]]
56name = "rust"
57harness = false
58required-features = ["full", "parsing"]
59
60[[bench]]
61name = "file"
62required-features = ["full", "parsing"]
63
64[package.metadata.docs.rs]
65all-features = true
66targets = ["x86_64-unknown-linux-gnu"]
67rustdoc-args = ["--cfg", "doc_cfg"]
68
69[package.metadata.playground]
70features = ["full", "visit", "visit-mut", "fold", "extra-traits"]
71
72[workspace]
73members = ["dev", "json", "tests/features"]
74