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