bincode
bincode copied to clipboard
A binary encoder / decoder implementation in Rust.
I am new to bincode, I got a simple scenario to serialize/desrialize an enum, which has string in it. i.e.: pub enum E { STRING(String), INT(i32) } After serialization, I...
I've noticed that v2.0 doesn't have a serialized size function. I'm a rust newbie, so I'm not going to attempt a pull request, but an implementation like this would probably...
Is there a reason for ErrorKind not implementing Clone? If not, can we make that happen?
The current error API does not include a path to the type that failed to encode/decode; if the user sees `DecodeError::Utf8` for example they would have to just guess where...
Test case: ```rs #[derive(bincode::Encode)] struct Test where T: Clone, { a: T, } ``` Output: ``` error: expected one of `{`, lifetime, or type, found `,` --> src/main.rs:3:10 | 3...
I'm currently implementing `Reader` for a newtype over `VecDeque`. To implement `peek_read`, I need to make the `VecDeque` contiguous with `make_contiguous`, which mutates in order to make the data a...
``` error[E0425]: cannot find value `field_0` in this scope --> bug/src/lib.rs:4:29 | 1 | / macro_rules! dv { 2 | | ($($t:item),+) => { 3 | | $( 4 |...
The `Fixint`, `LittleEndian` types for the Configuration are marked as `doc(hidden)`, but probably shouldn't be as there is a need to find their import path sometimes: E.g., if one declares...
As a newcomer to this project, I was confused at first, because the README only barely mentioned the split between v1 and v2. Also, as far as I can tell,...