mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 16:00:10 +00:00
e7173e7ead
There are no longer cfgs that need to be enabled based on compiler version. The only cfg is for running `cargo test` from a clone of the git repo. We can avoid publishing build.rs to save ~1 second of compile time when compiling syn as a dependency.
78 lines
1.7 KiB
TOML
78 lines
1.7 KiB
TOML
[package]
|
|
name = "syn-next"
|
|
version = "0.15.42" # don't forget to update html_root_url and syn.json
|
|
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
|
license = "MIT OR Apache-2.0"
|
|
description = "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 = [
|
|
"/benches/**",
|
|
"/Cargo.toml",
|
|
"/LICENSE-APACHE",
|
|
"/LICENSE-MIT",
|
|
"/README.md",
|
|
"/src/**",
|
|
"/tests/**",
|
|
]
|
|
edition = "2018"
|
|
publish = false # contains breaking changes
|
|
|
|
[lib]
|
|
name = "syn"
|
|
|
|
[features]
|
|
default = ["derive", "parsing", "printing", "clone-impls", "proc-macro"]
|
|
derive = []
|
|
full = []
|
|
parsing = []
|
|
printing = ["quote-next"]
|
|
visit = []
|
|
visit-mut = []
|
|
fold = []
|
|
clone-impls = []
|
|
extra-traits = []
|
|
proc-macro = ["proc-macro2-next/proc-macro", "quote-next/proc-macro"]
|
|
|
|
[dependencies]
|
|
proc-macro2-next = { version = "0.4.4", default-features = false }
|
|
quote-next = { version = "0.6", optional = true, default-features = false }
|
|
unicode-xid = "0.1"
|
|
|
|
[dev-dependencies]
|
|
insta = "0.8"
|
|
rayon = "1.0"
|
|
ref-cast = "0.2"
|
|
regex = "1.0"
|
|
termcolor = "1.0"
|
|
walkdir = "2.1"
|
|
|
|
[[bench]]
|
|
name = "rust"
|
|
edition = "2018"
|
|
harness = false
|
|
required-features = ["full", "parsing"]
|
|
|
|
[[bench]]
|
|
name = "file"
|
|
edition = "2018"
|
|
required-features = ["full", "parsing"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[package.metadata.playground]
|
|
all-features = true
|
|
|
|
[badges]
|
|
travis-ci = { repository = "dtolnay/syn" }
|
|
|
|
[workspace]
|
|
members = ["dev", "json"]
|
|
|
|
[patch.crates-io]
|
|
proc-macro2-next = { git = "https://github.com/alexcrichton/proc-macro2", branch = "next" }
|
|
quote-next = { git = "https://github.com/dtolnay/quote" }
|