aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock33
-rw-r--r--crates/proc_macro_api/Cargo.toml1
-rw-r--r--crates/proc_macro_api/src/msg.rs3
3 files changed, 1 insertions, 36 deletions
diff --git a/Cargo.lock b/Cargo.lock
index d724d8962..9ddbeac47 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1182,7 +1182,6 @@ dependencies = [
1182 "log", 1182 "log",
1183 "serde", 1183 "serde",
1184 "serde_json", 1184 "serde_json",
1185 "serde_stacker",
1186 "tt", 1185 "tt",
1187] 1186]
1188 1187
@@ -1241,15 +1240,6 @@ dependencies = [
1241] 1240]
1242 1241
1243[[package]] 1242[[package]]
1244name = "psm"
1245version = "0.1.12"
1246source = "registry+https://github.com/rust-lang/crates.io-index"
1247checksum = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a"
1248dependencies = [
1249 "cc",
1250]
1251
1252[[package]]
1253name = "pulldown-cmark" 1243name = "pulldown-cmark"
1254version = "0.8.0" 1244version = "0.8.0"
1255source = "registry+https://github.com/rust-lang/crates.io-index" 1245source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1568,16 +1558,6 @@ dependencies = [
1568] 1558]
1569 1559
1570[[package]] 1560[[package]]
1571name = "serde_stacker"
1572version = "0.1.4"
1573source = "registry+https://github.com/rust-lang/crates.io-index"
1574checksum = "f4c92391a63e3b83f77334d8beaaf11bac4c900f3769483e543bf76a81bf8ee2"
1575dependencies = [
1576 "serde",
1577 "stacker",
1578]
1579
1580[[package]]
1581name = "sharded-slab" 1561name = "sharded-slab"
1582version = "0.1.0" 1562version = "0.1.0"
1583source = "registry+https://github.com/rust-lang/crates.io-index" 1563source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1623,19 +1603,6 @@ dependencies = [
1623] 1603]
1624 1604
1625[[package]] 1605[[package]]
1626name = "stacker"
1627version = "0.1.12"
1628source = "registry+https://github.com/rust-lang/crates.io-index"
1629checksum = "21ccb4c06ec57bc82d0f610f1a2963d7648700e43a6f513e564b9c89f7991786"
1630dependencies = [
1631 "cc",
1632 "cfg-if 0.1.10",
1633 "libc",
1634 "psm",
1635 "winapi 0.3.9",
1636]
1637
1638[[package]]
1639name = "stdx" 1606name = "stdx"
1640version = "0.0.0" 1607version = "0.0.0"
1641 1608
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]
13serde = { version = "1.0", features = ["derive"] } 13serde = { version = "1.0", features = ["derive"] }
14serde_json = "1.0" 14serde_json = "1.0"
15serde_stacker = "0.1"
16log = "0.4.8" 15log = "0.4.8"
17crossbeam-channel = "0.5.0" 16crossbeam-channel = "0.5.0"
18jod-thread = "0.1.1" 17jod-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 }