diff options
author | Edwin Cheng <[email protected]> | 2020-03-28 10:12:51 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-03-31 15:20:18 +0100 |
commit | 0aacacd4a2ece0801287cf3e8f3f7c9115f6b548 (patch) | |
tree | 922d9440f7bf8449adb5a05bc03a22e0805e0824 /crates/ra_proc_macro/src/rpc.rs | |
parent | 7155d5df89e6b36018f8844774c4164eba64b49f (diff) |
Simple cross-process message protocol
Diffstat (limited to 'crates/ra_proc_macro/src/rpc.rs')
-rw-r--r-- | crates/ra_proc_macro/src/rpc.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ | |||
1 | //! Data struture serialization related stuffs for RPC | 1 | //! Data struture serialization related stuffs for RPC |
2 | //! | ||
3 | //! Define all necessary rpc serialization data structure, | ||
4 | //! which include ra_tt related data and some task messages. | ||
5 | //! Although adding Serialize and Deserialize trait to ra_tt directly seem to be much easier, | ||
6 | //! we deliberately duplicate the ra_tt struct with #[serde(with = "XXDef")] | ||
7 | //! for separation of code responsibility. | ||
2 | 8 | ||
3 | use ra_tt::{ | 9 | use ra_tt::{ |
4 | Delimiter, DelimiterKind, Ident, Leaf, Literal, Punct, SmolStr, Spacing, Subtree, TokenId, | 10 | Delimiter, DelimiterKind, Ident, Leaf, Literal, Punct, SmolStr, Spacing, Subtree, TokenId, |