Skip to content

Commit 717fd22

Browse files
authored
chore: allow syn v1 and v2 to coexist peacefully (#2401)
The proc-macro ecosystem is in the middle of a migration from `syn` v1 to `syn` v2. Some crates (such as `tokio-macros`, `async-trait`, `tracing-attributes`, etc) have been updated to v2, while others haven't yet. This means that `cargo deny` will not currently permit us to update some of those crates to versions that depend on `syn` v2, because they will create a duplicate dependency. Since `syn` is used by proc-macros (executed at compile time), duplicate versions won't have an impact on the final binary size. Therefore, it's fine to allow both v1 and v2 to coexist while the ecosystem is still being gradually migrated to the new version.
1 parent aacd8c9 commit 717fd22

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

deny.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ highlight = "all"
5252
deny = [
5353
{ name = "rustls", wrappers = ["tokio-rustls"] },
5454
]
55-
skip = []
55+
skip = [
56+
# The proc-macro ecosystem is in the middle of a migration from `syn` v1 to
57+
# `syn` v2. Allow both versions to coexist peacefully for now.
58+
#
59+
# Since `syn` is used by proc-macros (executed at compile time), duplicate
60+
# versions won't have an impact on the final binary size.
61+
{ name = "syn" },
62+
]
5663
skip-tree = [
5764
# Hasn't seen a new release since 2017. Pulls in an older version of nom.
5865
{ name = "procinfo" },

0 commit comments

Comments
 (0)