msgpack-rust
msgpack-rust copied to clipboard
MessagePack implementation for Rust / msgpack.org[Rust]
Hi I am trying to serialize cloudevent to msgpack using rmp_serde. Here is my piece of code: ```rust let event = EventBuilderV10::new() .id("03b0fe5d-1285-6706-4735-6caf9bfaa852") .ty("com.314e.muspellarchive.export") .source("muspell-archive") .subject("subject") .data("application/json", json!({"hello": "world"})) .build().unwrap();...
The current `rmpv::ext::to_value` implementation turns Structs into `Value::Array` which is not deserializable by other languages. Technically I would call this a bug and opt to change the existing `to_value` implementation,...
The doc for `MSGPACK_EXT_STRUCT_NAME` says: ``` Name of Serde newtype struct to Represent Msgpack’s Ext Msgpack Ext: Ext(tag, binary) Serde data model: _ExtStruct((tag, binary)) ``` I fail to parse this,...
`Utf8String::as_bytes` currently has the lifetime of a reference to a reference, which makes it more restrictive than it needs to be. Since immutable references are `Copy`, we can return a...
Use of alloc crate is now behind a feature Still missing proper error handling, but I wanted to get an idea if this would be a potentially accepted PR before...
Hello! The following code fails with `deserialization not working: Syntax("invalid type: newtype struct, expected any valid JSON value")` on the `rmp_serde:1.1.1` ``` #[test] fn test() { let expected_value = r#"{"asd":...
Minor grammar fix for `ValueReadError::TypeMismatch` and `NumValueReadError::TypeMismatch` error descriptions
I often want to encode a bunch of identically-shaped objects like {"name": "raylu", "id": 1} {"name": "bob", "id": 2} msgpackr supports "records" for this: https://github.com/kriszyp/msgpackr#record--object-structures cbor2 supports "string references": https://cbor2.readthedocs.io/en/latest/usage.html#string-references...
I don't have admin rights here, so please ask @3Hren for access.
Hello, I am the author of [Garage](https://garagehq.deuxfleurs.fr), a storage system that relies on `rmp-serde` to serialize all data that is persisted to disk. We are currently using version 0.15.5 of...