mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
add MessagePack as a plugin protocol (#6370)
This commit is contained in:
@ -2,7 +2,7 @@ mod cool_custom_value;
|
||||
mod second_custom_value;
|
||||
|
||||
use cool_custom_value::CoolCustomValue;
|
||||
use nu_plugin::{serve_plugin, CapnpSerializer, Plugin};
|
||||
use nu_plugin::{serve_plugin, MsgPackSerializer, Plugin};
|
||||
use nu_plugin::{EvaluatedCall, LabeledError};
|
||||
use nu_protocol::{Category, ShellError, Signature, Value};
|
||||
use second_custom_value::SecondCustomValue;
|
||||
@ -74,5 +74,5 @@ impl CustomValuePlugin {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
serve_plugin(&mut CustomValuePlugin, CapnpSerializer {})
|
||||
serve_plugin(&mut CustomValuePlugin, MsgPackSerializer {})
|
||||
}
|
||||
|
Reference in New Issue
Block a user