Add experimental feature with optional dependency on clang-ast

This commit is contained in:
David Tolnay 2021-04-21 13:42:37 -07:00
parent 2c76dd6962
commit 34a44cb940
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -14,11 +14,19 @@ categories = ["development-tools::ffi"]
[lib]
proc-macro = true
[features]
experimental = ["clang-ast", "serde", "serde_json"]
[dependencies]
proc-macro2 = "1.0"
quote = "1.0.4"
syn = { version = "1.0.68", features = ["full"] }
# optional dependencies
clang-ast = { version = "0.1", optional = true }
serde = { version = "1.0", optional = true, features = ["derive"] }
serde_json = { version = "1.0", optional = true }
[dev-dependencies]
cxx = { version = "1.0", path = ".." }