Start switching JSON LSP adapter to plugin (take 2)
This commit is contained in:
parent
35b2eff29c
commit
7dd3114a7a
22 changed files with 372 additions and 100 deletions
|
@ -30,9 +30,9 @@ pub fn bind(args: TokenStream, function: TokenStream) -> TokenStream {
|
|||
let data = unsafe { buffer.to_vec() };
|
||||
|
||||
// operation
|
||||
let argument = ::bincode::deserialize(&data).unwrap();
|
||||
let argument = ::plugin::bincode::deserialize(&data).unwrap();
|
||||
let result = #inner_fn_name(argument);
|
||||
let new_data: Result<Vec<u8>, _> = ::bincode::serialize(&result);
|
||||
let new_data: Result<Vec<u8>, _> = ::plugin::bincode::serialize(&result);
|
||||
let new_data = new_data.unwrap();
|
||||
|
||||
// teardown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue