• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "syn"
3version = "1.0.86" # 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"
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.32", default-features = false }
40quote = { version = "1.0", optional = true, default-features = false }
41unicode-xid = "0.2"
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[[bench]]
58name = "rust"
59harness = false
60required-features = ["full", "parsing"]
61
62[[bench]]
63name = "file"
64required-features = ["full", "parsing"]
65
66[package.metadata.docs.rs]
67all-features = true
68targets = ["x86_64-unknown-linux-gnu"]
69rustdoc-args = ["--cfg", "doc_cfg"]
70
71[package.metadata.playground]
72features = ["full", "visit", "visit-mut", "fold", "extra-traits"]
73
74[workspace]
75members = ["dev", "json", "tests/crates", "tests/features"]
76