msgpackin_core
Msgpackin pure Rust MessagePack no_std
encoding / decoding library.
If you are looking for Value types or serde integration, see the main msgpackin crate.
This crate:
- is written in pure Rust
- has no dependencies
- is always
#![no_std]
- there is no feature flag to enable std lib - never imports the
alloc
crate - there is no feature flag to do so - is infallible - there are no error types / Result types
- the one accommodation to make this happen is that the msgpack
"reserved" marker (
0xc1
) will be decoded as if it were aNil
marker (0xc0
)
- the one accommodation to make this happen is that the msgpack
"reserved" marker (
Example
use *;
use *;
const S1: &str = "hello ";
const S2: &str = "world!";
// this is a no_std, no alloc crate, everything must be on the stack
let mut buf: = ;
let mut cur = 0;
// make sure we wrote the correct bytes to the buffer
assert_eq!;
let mut dec = new;
let mut iter = dec.parse;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
License: Apache-2.0