Rand Stats

The uploading author of cpan:AZAWAWI does not match the META author of github:azawawi.

MsgPack

cpan:AZAWAWI

MsgPack

Build Status Build status

Perl 6 Interface to libmsgpack

Example

use v6;
use MsgPack;

my $data     = [1, True, "Example", { "that" => "rocks" }];
my $packed   = MsgPack::pack($data);
my $unpacked = MsgPack::unpack($packed);

say "data     : " ~ $data.perl;
say "packed   : " ~ $packed.perl;
say "unpacked : " ~ $unpacked.perl;

For more examples, please see the examples folder.

Installation

$ zef install MsgPack

Dependencies

Please follow the instructions below based on your platform:

Linux (Debian)

$ sudo apt-get install libmsgpack-dev

macOS

$ brew update
$ brew install msgpack

Windows

Not supported at the moment but planned as a pre-built DLL in the near future.

TODO support windows with a pre-built DLL

Testing

$ prove -ve "perl6 -Ilib"
$ zef install Test::META
$ AUTHOR_TESTING=1 prove -e "perl6 -Ilib"

See Also

Author

Ahmad M. Zawawi, azawawi on #perl6

License

MIT License