• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "syn"
3version = "2.0.38" # 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.67", default-features = false }
39quote = { version = "1.0.28", 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"
49regex = "1"
50reqwest = { version = "0.11", features = ["blocking"] }
51rustversion = "1"
52syn-test-suite = { version = "0", path = "tests/features" }
53tar = "0.4.16"
54termcolor = "1"
55walkdir = "2.3.2"
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", "--generate-link-to-definition"]
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    "tests/features",
89]
90