From ae92baba6a3f70a5234dc4fcf15660c2c01deeee Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Fri, 1 Jan 2021 15:26:55 +0800 Subject: Remove serde_stacker which depends on cc --- crates/proc_macro_api/Cargo.toml | 1 - crates/proc_macro_api/src/msg.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'crates') diff --git a/crates/proc_macro_api/Cargo.toml b/crates/proc_macro_api/Cargo.toml index a8e128d55..1af2bbca7 100644 --- a/crates/proc_macro_api/Cargo.toml +++ b/crates/proc_macro_api/Cargo.toml @@ -12,7 +12,6 @@ doctest = false [dependencies] serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_stacker = "0.1" log = "0.4.8" crossbeam-channel = "0.5.0" jod-thread = "0.1.1" diff --git a/crates/proc_macro_api/src/msg.rs b/crates/proc_macro_api/src/msg.rs index 43d13a764..4cd572101 100644 --- a/crates/proc_macro_api/src/msg.rs +++ b/crates/proc_macro_api/src/msg.rs @@ -63,8 +63,7 @@ pub trait Message: Serialize + DeserializeOwned { // Note that some proc-macro generate very deep syntax tree // We have to disable the current limit of serde here deserializer.disable_recursion_limit(); - let deserializer = serde_stacker::Deserializer::new(&mut deserializer); - Some(Self::deserialize(deserializer)?) + Some(Self::deserialize(&mut deserializer)?) } }) } -- cgit v1.2.3