Simple cross-process message protocol

This commit is contained in:
Edwin Cheng 2020-03-28 18:12:51 +08:00
parent 7155d5df89
commit 0aacacd4a2
3 changed files with 84 additions and 223 deletions

View file

@ -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,