From 2b5c034f133fe55aaf9e5d69c98cafcfee139a11 Mon Sep 17 00:00:00 2001 From: Till Hoeppner Date: Tue, 28 Jul 2015 00:26:03 +0200 Subject: Add msgpack output --- src/format/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/format/mod.rs') diff --git a/src/format/mod.rs b/src/format/mod.rs index 558de90..f918287 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -25,6 +25,7 @@ use context::Context; pub mod weechat3; pub mod energymech; pub mod binary; +pub mod msgpack; pub trait Encode<'a, W> where W: Write { fn encode(&'a self, context: &'a Context, output: W, event: &'a Event) -> ::Result<()>; @@ -53,6 +54,7 @@ pub fn decoder<'a>(format: &str) -> Option>> "energymech" => Some(Box::new(energymech::Energymech)), "weechat3" => Some(Box::new(weechat3::Weechat3)), "binary" => Some(Box::new(binary::Binary)), + "msgpack" => Some(Box::new(msgpack::Msgpack)), _ => None } } @@ -62,6 +64,7 @@ pub fn encoder<'a>(format: &str) -> Option>> { "energymech" => Some(Box::new(energymech::Energymech)), "weechat3" => Some(Box::new(weechat3::Weechat3)), "binary" => Some(Box::new(binary::Binary)), + "msgpack" => Some(Box::new(msgpack::Msgpack)), _ => None } } -- cgit v1.2.3