diff options
author | Edwin Cheng <[email protected]> | 2021-01-01 07:26:55 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2021-01-01 07:26:55 +0000 |
commit | ae92baba6a3f70a5234dc4fcf15660c2c01deeee (patch) | |
tree | 740a5c3fe40d5ce8c4107ce2d01504edf4ac2725 /crates | |
parent | a65025604da0a3f43b668c60a4a2f97a70b71363 (diff) |
Remove serde_stacker which depends on cc
Diffstat (limited to 'crates')
-rw-r--r-- | crates/proc_macro_api/Cargo.toml | 1 | ||||
-rw-r--r-- | crates/proc_macro_api/src/msg.rs | 3 |
2 files changed, 1 insertions, 3 deletions
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 | |||
12 | [dependencies] | 12 | [dependencies] |
13 | serde = { version = "1.0", features = ["derive"] } | 13 | serde = { version = "1.0", features = ["derive"] } |
14 | serde_json = "1.0" | 14 | serde_json = "1.0" |
15 | serde_stacker = "0.1" | ||
16 | log = "0.4.8" | 15 | log = "0.4.8" |
17 | crossbeam-channel = "0.5.0" | 16 | crossbeam-channel = "0.5.0" |
18 | jod-thread = "0.1.1" | 17 | 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 { | |||
63 | // Note that some proc-macro generate very deep syntax tree | 63 | // Note that some proc-macro generate very deep syntax tree |
64 | // We have to disable the current limit of serde here | 64 | // We have to disable the current limit of serde here |
65 | deserializer.disable_recursion_limit(); | 65 | deserializer.disable_recursion_limit(); |
66 | let deserializer = serde_stacker::Deserializer::new(&mut deserializer); | 66 | Some(Self::deserialize(&mut deserializer)?) |
67 | Some(Self::deserialize(deserializer)?) | ||
68 | } | 67 | } |
69 | }) | 68 | }) |
70 | } | 69 | } |