mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 16:00:10 +00:00
45 lines
1.2 KiB
TOML
45 lines
1.2 KiB
TOML
[package]
|
|
name = "syn"
|
|
version = "0.13.7" # don't forget to update html_root_url
|
|
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
|
license = "MIT/Apache-2.0"
|
|
description = "Nom parser for Rust source code"
|
|
repository = "https://github.com/dtolnay/syn"
|
|
documentation = "https://docs.rs/syn"
|
|
categories = ["development-tools::procedural-macro-helpers"]
|
|
readme = "README.md"
|
|
include = ["/Cargo.toml", "/src/**/*.rs", "/README.md", "/LICENSE-APACHE", "/LICENSE-MIT"]
|
|
|
|
[[example]]
|
|
name = "dump-syntax"
|
|
path = "examples/dump-syntax/main.rs"
|
|
required-features = ["full", "parsing", "extra-traits"]
|
|
|
|
[features]
|
|
default = ["derive", "parsing", "printing", "clone-impls", "proc-macro"]
|
|
derive = []
|
|
full = []
|
|
parsing = []
|
|
printing = ["quote"]
|
|
visit = []
|
|
visit-mut = []
|
|
fold = []
|
|
clone-impls = []
|
|
extra-traits = []
|
|
proc-macro = ["proc-macro2/proc-macro", "quote/proc-macro"]
|
|
|
|
# Features to build for play.rust-lang.org. Not public API.
|
|
playground = ["full", "visit", "visit-mut", "fold", "extra-traits"]
|
|
|
|
[dependencies]
|
|
proc-macro2 = { version = "0.3", default-features = false }
|
|
quote = { version = "0.5", optional = true, default-features = false }
|
|
unicode-xid = "0.1"
|
|
|
|
[dev-dependencies]
|
|
rayon = "1.0.0"
|
|
walkdir = "2"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|