blob: d29b93db6717ebe216b206ef41bf85c982ca9273 [file] [log] [blame]
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -07001[package]
2name = "syn"
Joel Galenson2909d9d2021-04-13 08:49:59 -07003version = "1.0.69" # don't forget to update html_root_url and syn.json
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -07004authors = ["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]
Chih-Hung Hsieh467ea212019-10-31 17:36:47 -070021edition = "2018"
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070022
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"]
Haibo Huang548c6a32020-05-15 23:36:50 -070035test = ["syn-test-suite/all-features"]
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070036
37[dependencies]
Joel Galenson2909d9d2021-04-13 08:49:59 -070038proc-macro2 = { version = "1.0.26", default-features = false }
Chih-Hung Hsieh467ea212019-10-31 17:36:47 -070039quote = { version = "1.0", optional = true, default-features = false }
40unicode-xid = "0.2"
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070041
42[dev-dependencies]
Chih-Hung Hsieh218e2692020-03-20 13:02:10 -070043anyhow = "1.0"
44flate2 = "1.0"
Chih-Hung Hsieha0ab7402020-10-26 13:16:52 -070045insta = "1.0"
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070046rayon = "1.0"
Chih-Hung Hsieh218e2692020-03-20 13:02:10 -070047ref-cast = "1.0"
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070048regex = "1.0"
Chih-Hung Hsieh218e2692020-03-20 13:02:10 -070049reqwest = { version = "0.10", features = ["blocking"] }
Haibo Huang548c6a32020-05-15 23:36:50 -070050syn-test-suite = { version = "0", path = "tests/features" }
Haibo Huangec2e2eb2021-01-05 21:38:44 -080051tar = "0.4.16"
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070052termcolor = "1.0"
53walkdir = "2.1"
54
55[[bench]]
56name = "rust"
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070057harness = false
58required-features = ["full", "parsing"]
59
60[[bench]]
61name = "file"
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070062required-features = ["full", "parsing"]
63
64[package.metadata.docs.rs]
65all-features = true
Chih-Hung Hsieh725b6ec2020-04-16 17:09:06 -070066targets = ["x86_64-unknown-linux-gnu"]
Haibo Huangec2e2eb2021-01-05 21:38:44 -080067rustdoc-args = ["--cfg", "doc_cfg"]
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070068
69[package.metadata.playground]
Haibo Huang4fbebf92020-05-26 17:08:50 -070070features = ["full", "visit", "visit-mut", "fold", "extra-traits"]
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070071
Chih-Hung Hsiehec8f5e42019-10-25 18:13:44 -070072[workspace]
Haibo Huang548c6a32020-05-15 23:36:50 -070073members = ["dev", "json", "tests/features"]