msgpack-rust icon indicating copy to clipboard operation
msgpack-rust copied to clipboard

MessagePack implementation for Rust / msgpack.org[Rust]

Results 68 msgpack-rust issues
Sort by recently updated
recently updated
newest added

Without this, you can't write something like: ```rust fn read_slice_ref>(r: &mut R) -> Option

I feel like the byteorder crate does not do much useful here and can easily be removed. This is what this PR does.

``` use rmp_serde::Serializer; use serde::Serialize; extern crate rmp_serde; extern crate serde; #[macro_use] extern crate serde_derive; #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] struct A { b: B, } #[derive(Debug, Serialize, Deserialize)]...

Hello. First of all, thank you for those great libraries. Unless I misunderstand, the statements of lines 135-140 in the extract below do not reflect how the code is doing....

Hello, I noticed that between versions 0.15.4 and 1.0.0 the enumerations are serialized by name rather than index. Is it possible by configuration to achieve back the old behavior?

The `serde` implementation in `rmp-serde` encodes enum variants as a single-element mapping with the variant's name as a key; in contrast, `rmpv`'s serde implementation encodes enum variants as a two-element...

I am trying to use `[serde(serialize_with = "myfunc")]` to serialize a `std::time::Duration` type, where `myfunc` is defined as: ``` fn myfunc(duration: &std::time::Duration, serializer: S) -> Result where S: Serializer, {...

I'm trying to use `rmp_serde` to send and receive entire messages (`enum`s or `struct`s) via a `BytesMut` buffer that gets populated and emptied by a different part of the system...

I am trying to construct a `Deserializer` for use with `serde_transcode`, but it is failing: ```rust let mut deserializer: rmp_serde::Deserializer = rmp_serde::from_read(input).unwrap(); ``` `input` has the type `Box`. The converse...

https://github.com/3Hren/msgpack-rust/blob/941441f484c325464c9746fdca9d11c1ca6a2d78/rmp-serde/src/config.rs#L58 It seems it doesn't actually write enum variants by index, it uses idents as strings to prefix enum variant. Impl: https://github.com/3Hren/msgpack-rust/blob/941441f484c325464c9746fdca9d11c1ca6a2d78/rmp-serde/src/config.rs#L87-L97