msg-bebop 0.1.0

High-performance message serialization using Bebop
Documentation
  • Coverage
  • 14.29%
    1 out of 7 items documented1 out of 1 items with examples
  • Size
  • Source code size: 13.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 226.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jkassis

Msg Bebop Library

High-performance message serialization using Bebop for Rust.

Example

use msg_bebop::Msg;
use bebop::Record;

let msg = Msg {
    body: "Hello, world!",
    from_id: "sender123",
    id: "msg456",
    to_ids: vec!["recipient1", "recipient2"],
    _type: "greeting",
};

// Serialize
let mut bytes = Vec::new();
msg.serialize(&mut bytes)?;

// Deserialize
let decoded_msg = Msg::deserialize(&bytes)?;
# Ok::<(), Box<dyn std::error::Error>>(())