Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Just depend on Syn with default features
Browse files Browse the repository at this point in the history
We used to attempt to disable Syn's clone-impls feature because it was
not needed for proc-macro-hack, but Cargo seems to enable it anyway
because one of our dev-dependencies uses it. Instead of figuring out how
to test a non-Cargo build to avoid accidentally using clone-impls, just
depend on Syn's default feature set because downstream code is probably
doing the same anyway.
  • Loading branch information
dtolnay committed May 9, 2019
1 parent 11d0552 commit 15f1ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ proc-macro = true
[dependencies]
proc-macro2 = "0.4.19"
quote = "0.6.8"
syn = { version = "0.15.14", default-features = false, features = ["proc-macro", "parsing", "printing"] }
syn = "0.15.14"

[dev-dependencies]
demo-hack = { version = "0.0.5", path = "demo-hack" }
Expand Down

0 comments on commit 15f1ec5

Please sign in to comment.