From d4d9c26f047a8427677077d2b8167c0c6e8e4ce6 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 5 Dec 2018 20:36:49 -0800 Subject: poll_token: Use syn to simplify poll token derive This CL removes 300 lines of parsing code and 200 lines of tests of parsing code by using the parsers provided by Syn, which we already use in implementing our other custom derives. TEST=cargo test poll_token_derive TEST=cargo check crosvm Change-Id: Ie2743b1bbb1b374326f9845fc37fc578b178c53d Reviewed-on: https://chromium-review.googlesource.com/1365112 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: David Tolnay Reviewed-by: Zach Reizner --- sys_util/poll_token_derive/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys_util/poll_token_derive/Cargo.toml') diff --git a/sys_util/poll_token_derive/Cargo.toml b/sys_util/poll_token_derive/Cargo.toml index f874ce5..8610ee3 100644 --- a/sys_util/poll_token_derive/Cargo.toml +++ b/sys_util/poll_token_derive/Cargo.toml @@ -6,3 +6,8 @@ authors = ["The Chromium OS Authors"] [lib] proc-macro = true path = "poll_token_derive.rs" + +[dependencies] +syn = "0.15" +quote = "0.6" +proc-macro2 = "0.4" -- cgit 1.4.1