1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # Babbel MessagePack
//!
//! Fast, binary-safe, zero-copy MessagePack parser, serializer, and DOM engine in pure Rust.
//! Adheres strictly to the official MessagePack specification and Babbel's SOLID architecture.
//!
//! MessagePack maps with 100% fidelity to Babbel's universal [`Value`] AST:
//! - Nil -> `Value::Null`
//! - Boolean -> `Value::Bool`
//! - Signed & Unsigned integers -> `Value::Integer(i128)`
//! - 32-bit & 64-bit IEEE floats -> `Value::Float(f64)`
//! - UTF-8 Strings -> `Value::String(String)`
//! - Binary byte buffers (`bin 8/16/32`) -> `Value::Bytes(Vec<u8>)`
//! - Arrays -> `Value::Array(Vec<Value>)`
//! - Maps -> `Value::Object(Vec<(String, Value)>)`
//!
//! ## Quickstart
//!
//! ```rust
//! use babbel_msgpack::{from_bytes, to_vec, MsgPackEngine};
//! use babbel_core::Value;
//!
//! let original = Value::Object(vec![
//! ("compact".into(), Value::Bool(true)),
//! ("schema".into(), Value::Integer(0)),
//! ]);
//!
//! let encoded = to_vec(&original).unwrap();
//! let decoded = from_bytes(&encoded).unwrap();
//! assert_eq!(original, decoded);
//! ```
extern crate alloc;
pub use Value;
pub use *;
pub use MsgPackEngine;
pub use MsgPackError;
pub use ;
pub use ;
pub use ;