| 1 |
[package] |
| 2 |
name = "syn" |
| 3 |
version = "2.0.113" |
| 4 |
authors = ["David Tolnay <[email protected]>"] |
| 5 |
categories = ["development-tools::procedural-macro-helpers", "parser-implementations"] |
| 6 |
description = "Parser for Rust source code" |
| 7 |
documentation = "https://docs.rs/syn" |
| 8 |
edition = "2021" |
| 9 |
include = [ |
| 10 |
"/benches/**", |
| 11 |
"/Cargo.toml", |
| 12 |
"/LICENSE-APACHE", |
| 13 |
"/LICENSE-MIT", |
| 14 |
"/README.md", |
| 15 |
"/src/**", |
| 16 |
"/tests/**", |
| 17 |
] |
| 18 |
keywords = ["macros", "syn"] |
| 19 |
license = "MIT OR Apache-2.0" |
| 20 |
repository = "https://github.com/dtolnay/syn" |
| 21 |
rust-version = "1.68" |
| 22 |
|
| 23 |
[features] |
| 24 |
default = ["derive", "parsing", "printing", "clone-impls", "proc-macro"] |
| 25 |
derive = [] |
| 26 |
full = [] |
| 27 |
parsing = [] |
| 28 |
printing = ["dep:quote"] |
| 29 |
visit = [] |
| 30 |
visit-mut = [] |
| 31 |
fold = [] |
| 32 |
clone-impls = [] |
| 33 |
extra-traits = [] |
| 34 |
proc-macro = ["proc-macro2/proc-macro", "quote?/proc-macro"] |
| 35 |
test = ["syn-test-suite/all-features"] |
| 36 |
|
| 37 |
[dependencies] |
| 38 |
proc-macro2 = { version = "1.0.91", default-features = false } |
| 39 |
quote = { version = "1.0.35", optional = true, default-features = false } |
| 40 |
unicode-ident = "1" |
| 41 |
|
| 42 |
[dev-dependencies] |
| 43 |
anyhow = "1" |
| 44 |
automod = "1" |
| 45 |
insta = "1" |
| 46 |
ref-cast = "1" |
| 47 |
rustversion = "1" |
| 48 |
syn-test-suite = { version = "0", path = "tests/features" } |
| 49 |
termcolor = "1" |
| 50 |
|
| 51 |
[target.'cfg(not(miri))'.dev-dependencies] |
| 52 |
flate2 = "1" |
| 53 |
rayon = "1" |
| 54 |
reqwest = { version = "0.13", features = ["blocking"] } |
| 55 |
tar = "0.4.16" |
| 56 |
walkdir = "2.3.2" |
| 57 |
|
| 58 |
[[bench]] |
| 59 |
name = "rust" |
| 60 |
harness = false |
| 61 |
required-features = ["full", "parsing"] |
| 62 |
|
| 63 |
[[bench]] |
| 64 |
name = "file" |
| 65 |
required-features = ["full", "parsing"] |
| 66 |
|
| 67 |
[package.metadata.docs.rs] |
| 68 |
all-features = true |
| 69 |
targets = ["x86_64-unknown-linux-gnu"] |
| 70 |
rustdoc-args = [ |
| 71 |
"--generate-link-to-definition", |
| 72 |
"--generate-macro-expansion", |
| 73 |
"--extend-css=src/gen/token.css", |
| 74 |
"--extern-html-root-url=core=https://doc.rust-lang.org", |
| 75 |
"--extern-html-root-url=alloc=https://doc.rust-lang.org", |
| 76 |
"--extern-html-root-url=std=https://doc.rust-lang.org", |
| 77 |
"--extern-html-root-url=proc_macro=https://doc.rust-lang.org", |
| 78 |
] |
| 79 |
|
| 80 |
[package.metadata.playground] |
| 81 |
features = ["full", "visit", "visit-mut", "fold", "extra-traits"] |
| 82 |
|
| 83 |
[workspace] |
| 84 |
members = [ |
| 85 |
"dev", |
| 86 |
"examples/dump-syntax", |
| 87 |
"examples/heapsize/example", |
| 88 |
"examples/heapsize/heapsize", |
| 89 |
"examples/heapsize/heapsize_derive", |
| 90 |
"examples/lazy-static/example", |
| 91 |
"examples/lazy-static/lazy-static", |
| 92 |
"examples/trace-var/example", |
| 93 |
"examples/trace-var/trace-var", |
| 94 |
"tests/features", |
| 95 |
] |