Skip to content

Commit c894a58

Browse files
committed
internal: add syn dependency
`syn` makes parsing Rust from proc-macros a lot simpler. `pin-init` has not used `syn` up until now, because the Linux kernel does not support using it. Since that changes now, we can finally utilize the added ergonomics of parsing proc-macro input with `syn`. Signed-off-by: Benno Lossin <lossin@kernel.org>
1 parent bd3d30b commit c894a58

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

Cargo.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/Cargo.lock

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ proc-macro = true
1515
[dependencies]
1616
quote = "1.0"
1717
proc-macro2 = "1.0"
18+
syn = { version = "2.0.86", features = ["full", "parsing", "visit-mut"] }
1819

1920
[build-dependencies]
2021
rustc_version = "0.4"

0 commit comments

Comments
 (0)