mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
add MessagePack as a plugin protocol (#6370)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use nu_plugin::{serve_plugin, CapnpSerializer};
|
||||
use nu_plugin::{serve_plugin, MsgPackSerializer};
|
||||
use nu_plugin_example::Example;
|
||||
|
||||
fn main() {
|
||||
@ -6,7 +6,7 @@ fn main() {
|
||||
// used to encode and decode the messages. The available options are
|
||||
// CapnpSerializer and JsonSerializer. Both are defined in the serializer
|
||||
// folder in nu-plugin.
|
||||
serve_plugin(&mut Example {}, CapnpSerializer {})
|
||||
serve_plugin(&mut Example {}, MsgPackSerializer {})
|
||||
|
||||
// Note
|
||||
// When creating plugins in other languages one needs to consider how a plugin
|
||||
|
Reference in New Issue
Block a user