From 0aacacd4a2ece0801287cf3e8f3f7c9115f6b548 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 28 Mar 2020 18:12:51 +0800 Subject: Simple cross-process message protocol --- crates/ra_proc_macro/src/rpc.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates/ra_proc_macro/src/rpc.rs') diff --git a/crates/ra_proc_macro/src/rpc.rs b/crates/ra_proc_macro/src/rpc.rs index f88d91f78..fc8b04e28 100644 --- a/crates/ra_proc_macro/src/rpc.rs +++ b/crates/ra_proc_macro/src/rpc.rs @@ -1,4 +1,10 @@ //! Data struture serialization related stuffs for RPC +//! +//! Define all necessary rpc serialization data structure, +//! which include ra_tt related data and some task messages. +//! Although adding Serialize and Deserialize trait to ra_tt directly seem to be much easier, +//! we deliberately duplicate the ra_tt struct with #[serde(with = "XXDef")] +//! for separation of code responsibility. use ra_tt::{ Delimiter, DelimiterKind, Ident, Leaf, Literal, Punct, SmolStr, Spacing, Subtree, TokenId, -- cgit v1.2.3