2016-09-03 18:33:15 +00:00
|
|
|
[package]
|
2019-08-13 16:06:54 +00:00
|
|
|
name = "syn"
|
2024-04-02 08:50:13 +00:00
|
|
|
version = "2.0.48" # don't forget to update html_root_url and syn.json
|
2016-09-03 18:33:15 +00:00
|
|
|
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
2022-08-01 07:06:48 +00:00
|
|
|
categories = ["development-tools::procedural-macro-helpers", "parser-implementations"]
|
2018-09-02 03:25:04 +00:00
|
|
|
description = "Parser for Rust source code"
|
2018-09-06 16:01:40 +00:00
|
|
|
documentation = "https://docs.rs/syn"
|
2024-04-02 08:50:13 +00:00
|
|
|
edition = "2021"
|
2019-03-10 07:01:03 +00:00
|
|
|
include = [
|
2019-06-27 16:07:48 +00:00
|
|
|
"/benches/**",
|
2019-03-10 07:01:03 +00:00
|
|
|
"/Cargo.toml",
|
|
|
|
"/LICENSE-APACHE",
|
|
|
|
"/LICENSE-MIT",
|
|
|
|
"/README.md",
|
2019-06-27 16:07:48 +00:00
|
|
|
"/src/**",
|
|
|
|
"/tests/**",
|
2019-03-10 07:01:03 +00:00
|
|
|
]
|
2022-08-02 17:38:56 +00:00
|
|
|
keywords = ["macros", "syn"]
|
2022-08-01 02:19:06 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
repository = "https://github.com/dtolnay/syn"
|
2024-04-02 08:50:13 +00:00
|
|
|
rust-version = "1.56"
|
2019-07-27 22:26:42 +00:00
|
|
|
|
2016-09-04 18:26:41 +00:00
|
|
|
[features]
|
2018-02-22 22:07:00 +00:00
|
|
|
default = ["derive", "parsing", "printing", "clone-impls", "proc-macro"]
|
2018-01-03 08:22:08 +00:00
|
|
|
derive = []
|
2017-01-24 01:59:46 +00:00
|
|
|
full = []
|
2017-12-31 23:35:12 +00:00
|
|
|
parsing = []
|
2019-08-13 16:06:54 +00:00
|
|
|
printing = ["quote"]
|
2016-09-11 19:58:56 +00:00
|
|
|
visit = []
|
2018-01-06 21:52:48 +00:00
|
|
|
visit-mut = []
|
2017-01-26 19:45:17 +00:00
|
|
|
fold = []
|
2017-12-26 21:43:39 +00:00
|
|
|
clone-impls = []
|
|
|
|
extra-traits = []
|
2019-08-13 16:06:54 +00:00
|
|
|
proc-macro = ["proc-macro2/proc-macro", "quote/proc-macro"]
|
2020-05-16 02:25:51 +00:00
|
|
|
test = ["syn-test-suite/all-features"]
|
2016-09-04 18:26:41 +00:00
|
|
|
|
2016-09-03 18:33:15 +00:00
|
|
|
[dependencies]
|
2024-04-02 08:50:13 +00:00
|
|
|
proc-macro2 = { version = "1.0.75", default-features = false }
|
|
|
|
quote = { version = "1.0.35", optional = true, default-features = false }
|
|
|
|
unicode-ident = "1"
|
2017-05-23 17:58:24 +00:00
|
|
|
|
2016-10-01 07:40:31 +00:00
|
|
|
[dev-dependencies]
|
2024-04-02 08:50:13 +00:00
|
|
|
anyhow = "1"
|
|
|
|
automod = "1"
|
|
|
|
flate2 = "1"
|
|
|
|
insta = "1"
|
|
|
|
rayon = "1"
|
|
|
|
ref-cast = "1"
|
2021-08-30 19:28:14 +00:00
|
|
|
reqwest = { version = "0.11", features = ["blocking"] }
|
2024-04-02 08:50:13 +00:00
|
|
|
rustversion = "1"
|
2020-05-16 02:25:51 +00:00
|
|
|
syn-test-suite = { version = "0", path = "tests/features" }
|
2020-12-12 17:05:15 +00:00
|
|
|
tar = "0.4.16"
|
2024-04-02 08:50:13 +00:00
|
|
|
termcolor = "1"
|
|
|
|
walkdir = "2.3.2"
|
2018-01-07 01:47:29 +00:00
|
|
|
|
2022-12-18 16:49:17 +00:00
|
|
|
[lib]
|
|
|
|
doc-scrape-examples = false
|
|
|
|
|
2019-06-23 22:50:02 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "rust"
|
|
|
|
harness = false
|
|
|
|
required-features = ["full", "parsing"]
|
|
|
|
|
2019-06-24 01:06:42 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "file"
|
|
|
|
required-features = ["full", "parsing"]
|
|
|
|
|
2018-01-07 01:47:29 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
2020-03-17 20:28:17 +00:00
|
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
2024-04-02 08:50:13 +00:00
|
|
|
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"]
|
2018-05-12 06:22:25 +00:00
|
|
|
|
|
|
|
[package.metadata.playground]
|
2020-05-25 19:04:25 +00:00
|
|
|
features = ["full", "visit", "visit-mut", "fold", "extra-traits"]
|
2018-08-07 07:18:20 +00:00
|
|
|
|
2019-02-09 00:03:49 +00:00
|
|
|
[workspace]
|
2022-06-06 20:20:37 +00:00
|
|
|
members = [
|
|
|
|
"dev",
|
|
|
|
"examples/dump-syntax",
|
|
|
|
"examples/heapsize/example",
|
|
|
|
"examples/heapsize/heapsize",
|
|
|
|
"examples/heapsize/heapsize_derive",
|
|
|
|
"examples/lazy-static/example",
|
|
|
|
"examples/lazy-static/lazy-static",
|
|
|
|
"examples/trace-var/example",
|
|
|
|
"examples/trace-var/trace-var",
|
|
|
|
"tests/features",
|
|
|
|
]
|