1[package]
2name = "syn"
3version = "2.0.53" # don't forget to update html_root_url and syn.json
4authors = ["David Tolnay <dtolnay@gmail.com>"]
5categories = ["development-tools::procedural-macro-helpers", "parser-implementations"]
6description = "Parser for Rust source code"
7documentation = "https://docs.rs/syn"
8edition = "2021"
9include = [
10 "/benches/**",
11 "/Cargo.toml",
12 "/LICENSE-APACHE",
13 "/LICENSE-MIT",
14 "/README.md",
15 "/src/**",
16 "/tests/**",
17]
18keywords = ["macros", "syn"]
19license = "MIT OR Apache-2.0"
20repository = "https://github.com/dtolnay/syn"
21rust-version = "1.56"
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.75", default-features = false }
39quote = { version = "1.0.35", optional = true, default-features = false }
40unicode-ident = "1"
41
42[dev-dependencies]
43anyhow = "1"
44automod = "1"
45flate2 = "1"
46insta = "1"
47rayon = "1"
48ref-cast = "1"
49reqwest = { version = "0.11", features = ["blocking"] }
50rustversion = "1"
51syn-test-suite = { version = "0", path = "tests/features" }
52tar = "0.4.16"
53termcolor = "1"
54walkdir = "2.3.2"
55
56[lib]
57doc-scrape-examples = false
58
59[[bench]]
60name = "rust"
61harness = false
62required-features = ["full", "parsing"]
63
64[[bench]]
65name = "file"
66required-features = ["full", "parsing"]
67
68[package.metadata.docs.rs]
69all-features = true
70targets = ["x86_64-unknown-linux-gnu"]
71rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"]
72
73[package.metadata.playground]
74features = ["full", "visit", "visit-mut", "fold", "extra-traits"]
75
76[workspace]
77members = [
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