| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.61" |
| 15 |
name = "syn" |
| 16 |
version = "2.0.87" |
| 17 |
authors = ["David Tolnay <[email protected]>"] |
| 18 |
build = false |
| 19 |
include = [ |
| 20 |
"/benches/**", |
| 21 |
"/Cargo.toml", |
| 22 |
"/LICENSE-APACHE", |
| 23 |
"/LICENSE-MIT", |
| 24 |
"/README.md", |
| 25 |
"/src/**", |
| 26 |
"/tests/**", |
| 27 |
] |
| 28 |
autolib = false |
| 29 |
autobins = false |
| 30 |
autoexamples = false |
| 31 |
autotests = false |
| 32 |
autobenches = false |
| 33 |
description = "Parser for Rust source code" |
| 34 |
documentation = "https://docs.rs/syn" |
| 35 |
readme = "README.md" |
| 36 |
keywords = [ |
| 37 |
"macros", |
| 38 |
"syn", |
| 39 |
] |
| 40 |
categories = [ |
| 41 |
"development-tools::procedural-macro-helpers", |
| 42 |
"parser-implementations", |
| 43 |
] |
| 44 |
license = "MIT OR Apache-2.0" |
| 45 |
repository = "https://github.com/dtolnay/syn" |
| 46 |
|
| 47 |
[package.metadata.docs.rs] |
| 48 |
all-features = true |
| 49 |
rustdoc-args = [ |
| 50 |
"--generate-link-to-definition", |
| 51 |
"--extend-css=src/gen/token.css", |
| 52 |
] |
| 53 |
targets = ["x86_64-unknown-linux-gnu"] |
| 54 |
|
| 55 |
[package.metadata.playground] |
| 56 |
features = [ |
| 57 |
"full", |
| 58 |
"visit", |
| 59 |
"visit-mut", |
| 60 |
"fold", |
| 61 |
"extra-traits", |
| 62 |
] |
| 63 |
|
| 64 |
[lib] |
| 65 |
name = "syn" |
| 66 |
path = "src/lib.rs" |
| 67 |
doc-scrape-examples = false |
| 68 |
|
| 69 |
[[test]] |
| 70 |
name = "regression" |
| 71 |
path = "tests/regression.rs" |
| 72 |
|
| 73 |
[[test]] |
| 74 |
name = "test_asyncness" |
| 75 |
path = "tests/test_asyncness.rs" |
| 76 |
|
| 77 |
[[test]] |
| 78 |
name = "test_attribute" |
| 79 |
path = "tests/test_attribute.rs" |
| 80 |
|
| 81 |
[[test]] |
| 82 |
name = "test_derive_input" |
| 83 |
path = "tests/test_derive_input.rs" |
| 84 |
|
| 85 |
[[test]] |
| 86 |
name = "test_expr" |
| 87 |
path = "tests/test_expr.rs" |
| 88 |
|
| 89 |
[[test]] |
| 90 |
name = "test_generics" |
| 91 |
path = "tests/test_generics.rs" |
| 92 |
|
| 93 |
[[test]] |
| 94 |
name = "test_grouping" |
| 95 |
path = "tests/test_grouping.rs" |
| 96 |
|
| 97 |
[[test]] |
| 98 |
name = "test_ident" |
| 99 |
path = "tests/test_ident.rs" |
| 100 |
|
| 101 |
[[test]] |
| 102 |
name = "test_item" |
| 103 |
path = "tests/test_item.rs" |
| 104 |
|
| 105 |
[[test]] |
| 106 |
name = "test_iterators" |
| 107 |
path = "tests/test_iterators.rs" |
| 108 |
|
| 109 |
[[test]] |
| 110 |
name = "test_lit" |
| 111 |
path = "tests/test_lit.rs" |
| 112 |
|
| 113 |
[[test]] |
| 114 |
name = "test_meta" |
| 115 |
path = "tests/test_meta.rs" |
| 116 |
|
| 117 |
[[test]] |
| 118 |
name = "test_parse_buffer" |
| 119 |
path = "tests/test_parse_buffer.rs" |
| 120 |
|
| 121 |
[[test]] |
| 122 |
name = "test_parse_quote" |
| 123 |
path = "tests/test_parse_quote.rs" |
| 124 |
|
| 125 |
[[test]] |
| 126 |
name = "test_parse_stream" |
| 127 |
path = "tests/test_parse_stream.rs" |
| 128 |
|
| 129 |
[[test]] |
| 130 |
name = "test_pat" |
| 131 |
path = "tests/test_pat.rs" |
| 132 |
|
| 133 |
[[test]] |
| 134 |
name = "test_path" |
| 135 |
path = "tests/test_path.rs" |
| 136 |
|
| 137 |
[[test]] |
| 138 |
name = "test_precedence" |
| 139 |
path = "tests/test_precedence.rs" |
| 140 |
|
| 141 |
[[test]] |
| 142 |
name = "test_receiver" |
| 143 |
path = "tests/test_receiver.rs" |
| 144 |
|
| 145 |
[[test]] |
| 146 |
name = "test_round_trip" |
| 147 |
path = "tests/test_round_trip.rs" |
| 148 |
|
| 149 |
[[test]] |
| 150 |
name = "test_shebang" |
| 151 |
path = "tests/test_shebang.rs" |
| 152 |
|
| 153 |
[[test]] |
| 154 |
name = "test_size" |
| 155 |
path = "tests/test_size.rs" |
| 156 |
|
| 157 |
[[test]] |
| 158 |
name = "test_stmt" |
| 159 |
path = "tests/test_stmt.rs" |
| 160 |
|
| 161 |
[[test]] |
| 162 |
name = "test_token_trees" |
| 163 |
path = "tests/test_token_trees.rs" |
| 164 |
|
| 165 |
[[test]] |
| 166 |
name = "test_ty" |
| 167 |
path = "tests/test_ty.rs" |
| 168 |
|
| 169 |
[[test]] |
| 170 |
name = "test_unparenthesize" |
| 171 |
path = "tests/test_unparenthesize.rs" |
| 172 |
|
| 173 |
[[test]] |
| 174 |
name = "test_visibility" |
| 175 |
path = "tests/test_visibility.rs" |
| 176 |
|
| 177 |
[[test]] |
| 178 |
name = "zzz_stable" |
| 179 |
path = "tests/zzz_stable.rs" |
| 180 |
|
| 181 |
[[bench]] |
| 182 |
name = "file" |
| 183 |
path = "benches/file.rs" |
| 184 |
required-features = [ |
| 185 |
"full", |
| 186 |
"parsing", |
| 187 |
] |
| 188 |
|
| 189 |
[[bench]] |
| 190 |
name = "rust" |
| 191 |
path = "benches/rust.rs" |
| 192 |
harness = false |
| 193 |
required-features = [ |
| 194 |
"full", |
| 195 |
"parsing", |
| 196 |
] |
| 197 |
|
| 198 |
[dependencies.proc-macro2] |
| 199 |
version = "1.0.83" |
| 200 |
default-features = false |
| 201 |
|
| 202 |
[dependencies.quote] |
| 203 |
version = "1.0.35" |
| 204 |
optional = true |
| 205 |
default-features = false |
| 206 |
|
| 207 |
[dependencies.unicode-ident] |
| 208 |
version = "1" |
| 209 |
|
| 210 |
[dev-dependencies.anyhow] |
| 211 |
version = "1" |
| 212 |
|
| 213 |
[dev-dependencies.automod] |
| 214 |
version = "1" |
| 215 |
|
| 216 |
[dev-dependencies.insta] |
| 217 |
version = "1" |
| 218 |
|
| 219 |
[dev-dependencies.ref-cast] |
| 220 |
version = "1" |
| 221 |
|
| 222 |
[dev-dependencies.rustversion] |
| 223 |
version = "1" |
| 224 |
|
| 225 |
[dev-dependencies.syn-test-suite] |
| 226 |
version = "0" |
| 227 |
|
| 228 |
[dev-dependencies.termcolor] |
| 229 |
version = "1" |
| 230 |
|
| 231 |
[features] |
| 232 |
clone-impls = [] |
| 233 |
default = [ |
| 234 |
"derive", |
| 235 |
"parsing", |
| 236 |
"printing", |
| 237 |
"clone-impls", |
| 238 |
"proc-macro", |
| 239 |
] |
| 240 |
derive = [] |
| 241 |
extra-traits = [] |
| 242 |
fold = [] |
| 243 |
full = [] |
| 244 |
parsing = [] |
| 245 |
printing = ["dep:quote"] |
| 246 |
proc-macro = [ |
| 247 |
"proc-macro2/proc-macro", |
| 248 |
"quote?/proc-macro", |
| 249 |
] |
| 250 |
test = ["syn-test-suite/all-features"] |
| 251 |
visit = [] |
| 252 |
visit-mut = [] |
| 253 |
|
| 254 |
[target."cfg(not(miri))".dev-dependencies.flate2] |
| 255 |
version = "1" |
| 256 |
|
| 257 |
[target."cfg(not(miri))".dev-dependencies.rayon] |
| 258 |
version = "1" |
| 259 |
|
| 260 |
[target."cfg(not(miri))".dev-dependencies.reqwest] |
| 261 |
version = "0.12" |
| 262 |
features = ["blocking"] |
| 263 |
|
| 264 |
[target."cfg(not(miri))".dev-dependencies.tar] |
| 265 |
version = "0.4.16" |
| 266 |
|
| 267 |
[target."cfg(not(miri))".dev-dependencies.walkdir] |
| 268 |
version = "2.3.2" |