| 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.68" |
| 15 |
name = "syn" |
| 16 |
version = "2.0.113" |
| 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 |
targets = ["x86_64-unknown-linux-gnu"] |
| 50 |
rustdoc-args = [ |
| 51 |
"--generate-link-to-definition", |
| 52 |
"--generate-macro-expansion", |
| 53 |
"--extend-css=src/gen/token.css", |
| 54 |
"--extern-html-root-url=core=https://doc.rust-lang.org", |
| 55 |
"--extern-html-root-url=alloc=https://doc.rust-lang.org", |
| 56 |
"--extern-html-root-url=std=https://doc.rust-lang.org", |
| 57 |
"--extern-html-root-url=proc_macro=https://doc.rust-lang.org", |
| 58 |
] |
| 59 |
|
| 60 |
[package.metadata.playground] |
| 61 |
features = [ |
| 62 |
"full", |
| 63 |
"visit", |
| 64 |
"visit-mut", |
| 65 |
"fold", |
| 66 |
"extra-traits", |
| 67 |
] |
| 68 |
|
| 69 |
[features] |
| 70 |
clone-impls = [] |
| 71 |
default = [ |
| 72 |
"derive", |
| 73 |
"parsing", |
| 74 |
"printing", |
| 75 |
"clone-impls", |
| 76 |
"proc-macro", |
| 77 |
] |
| 78 |
derive = [] |
| 79 |
extra-traits = [] |
| 80 |
fold = [] |
| 81 |
full = [] |
| 82 |
parsing = [] |
| 83 |
printing = ["dep:quote"] |
| 84 |
proc-macro = [ |
| 85 |
"proc-macro2/proc-macro", |
| 86 |
"quote?/proc-macro", |
| 87 |
] |
| 88 |
test = ["syn-test-suite/all-features"] |
| 89 |
visit = [] |
| 90 |
visit-mut = [] |
| 91 |
|
| 92 |
[lib] |
| 93 |
name = "syn" |
| 94 |
path = "src/lib.rs" |
| 95 |
|
| 96 |
[[test]] |
| 97 |
name = "regression" |
| 98 |
path = "tests/regression.rs" |
| 99 |
|
| 100 |
[[test]] |
| 101 |
name = "test_asyncness" |
| 102 |
path = "tests/test_asyncness.rs" |
| 103 |
|
| 104 |
[[test]] |
| 105 |
name = "test_attribute" |
| 106 |
path = "tests/test_attribute.rs" |
| 107 |
|
| 108 |
[[test]] |
| 109 |
name = "test_derive_input" |
| 110 |
path = "tests/test_derive_input.rs" |
| 111 |
|
| 112 |
[[test]] |
| 113 |
name = "test_expr" |
| 114 |
path = "tests/test_expr.rs" |
| 115 |
|
| 116 |
[[test]] |
| 117 |
name = "test_generics" |
| 118 |
path = "tests/test_generics.rs" |
| 119 |
|
| 120 |
[[test]] |
| 121 |
name = "test_grouping" |
| 122 |
path = "tests/test_grouping.rs" |
| 123 |
|
| 124 |
[[test]] |
| 125 |
name = "test_ident" |
| 126 |
path = "tests/test_ident.rs" |
| 127 |
|
| 128 |
[[test]] |
| 129 |
name = "test_item" |
| 130 |
path = "tests/test_item.rs" |
| 131 |
|
| 132 |
[[test]] |
| 133 |
name = "test_lit" |
| 134 |
path = "tests/test_lit.rs" |
| 135 |
|
| 136 |
[[test]] |
| 137 |
name = "test_meta" |
| 138 |
path = "tests/test_meta.rs" |
| 139 |
|
| 140 |
[[test]] |
| 141 |
name = "test_parse_buffer" |
| 142 |
path = "tests/test_parse_buffer.rs" |
| 143 |
|
| 144 |
[[test]] |
| 145 |
name = "test_parse_quote" |
| 146 |
path = "tests/test_parse_quote.rs" |
| 147 |
|
| 148 |
[[test]] |
| 149 |
name = "test_parse_stream" |
| 150 |
path = "tests/test_parse_stream.rs" |
| 151 |
|
| 152 |
[[test]] |
| 153 |
name = "test_pat" |
| 154 |
path = "tests/test_pat.rs" |
| 155 |
|
| 156 |
[[test]] |
| 157 |
name = "test_path" |
| 158 |
path = "tests/test_path.rs" |
| 159 |
|
| 160 |
[[test]] |
| 161 |
name = "test_precedence" |
| 162 |
path = "tests/test_precedence.rs" |
| 163 |
|
| 164 |
[[test]] |
| 165 |
name = "test_punctuated" |
| 166 |
path = "tests/test_punctuated.rs" |
| 167 |
|
| 168 |
[[test]] |
| 169 |
name = "test_receiver" |
| 170 |
path = "tests/test_receiver.rs" |
| 171 |
|
| 172 |
[[test]] |
| 173 |
name = "test_round_trip" |
| 174 |
path = "tests/test_round_trip.rs" |
| 175 |
|
| 176 |
[[test]] |
| 177 |
name = "test_shebang" |
| 178 |
path = "tests/test_shebang.rs" |
| 179 |
|
| 180 |
[[test]] |
| 181 |
name = "test_size" |
| 182 |
path = "tests/test_size.rs" |
| 183 |
|
| 184 |
[[test]] |
| 185 |
name = "test_stmt" |
| 186 |
path = "tests/test_stmt.rs" |
| 187 |
|
| 188 |
[[test]] |
| 189 |
name = "test_token_trees" |
| 190 |
path = "tests/test_token_trees.rs" |
| 191 |
|
| 192 |
[[test]] |
| 193 |
name = "test_ty" |
| 194 |
path = "tests/test_ty.rs" |
| 195 |
|
| 196 |
[[test]] |
| 197 |
name = "test_unparenthesize" |
| 198 |
path = "tests/test_unparenthesize.rs" |
| 199 |
|
| 200 |
[[test]] |
| 201 |
name = "test_visibility" |
| 202 |
path = "tests/test_visibility.rs" |
| 203 |
|
| 204 |
[[test]] |
| 205 |
name = "zzz_stable" |
| 206 |
path = "tests/zzz_stable.rs" |
| 207 |
|
| 208 |
[[bench]] |
| 209 |
name = "file" |
| 210 |
path = "benches/file.rs" |
| 211 |
required-features = [ |
| 212 |
"full", |
| 213 |
"parsing", |
| 214 |
] |
| 215 |
|
| 216 |
[[bench]] |
| 217 |
name = "rust" |
| 218 |
path = "benches/rust.rs" |
| 219 |
harness = false |
| 220 |
required-features = [ |
| 221 |
"full", |
| 222 |
"parsing", |
| 223 |
] |
| 224 |
|
| 225 |
[dependencies.proc-macro2] |
| 226 |
version = "1.0.91" |
| 227 |
default-features = false |
| 228 |
|
| 229 |
[dependencies.quote] |
| 230 |
version = "1.0.35" |
| 231 |
optional = true |
| 232 |
default-features = false |
| 233 |
|
| 234 |
[dependencies.unicode-ident] |
| 235 |
version = "1" |
| 236 |
|
| 237 |
[dev-dependencies.anyhow] |
| 238 |
version = "1" |
| 239 |
|
| 240 |
[dev-dependencies.automod] |
| 241 |
version = "1" |
| 242 |
|
| 243 |
[dev-dependencies.insta] |
| 244 |
version = "1" |
| 245 |
|
| 246 |
[dev-dependencies.ref-cast] |
| 247 |
version = "1" |
| 248 |
|
| 249 |
[dev-dependencies.rustversion] |
| 250 |
version = "1" |
| 251 |
|
| 252 |
[dev-dependencies.syn-test-suite] |
| 253 |
version = "0" |
| 254 |
|
| 255 |
[dev-dependencies.termcolor] |
| 256 |
version = "1" |
| 257 |
|
| 258 |
[target."cfg(not(miri))".dev-dependencies.flate2] |
| 259 |
version = "1" |
| 260 |
|
| 261 |
[target."cfg(not(miri))".dev-dependencies.rayon] |
| 262 |
version = "1" |
| 263 |
|
| 264 |
[target."cfg(not(miri))".dev-dependencies.reqwest] |
| 265 |
version = "0.13" |
| 266 |
features = ["blocking"] |
| 267 |
|
| 268 |
[target."cfg(not(miri))".dev-dependencies.tar] |
| 269 |
version = "0.4.16" |
| 270 |
|
| 271 |
[target."cfg(not(miri))".dev-dependencies.walkdir] |
| 272 |
version = "2.3.2" |