bitcode
bitcode copied to clipboard
A binary encoder/decoder for Rust
Are there any plans for a streaming API? The ability to serialize/deserialize `impl Read` and `impl Write`. I want to be able to deserialize from a TCPStream. bincode and postcard...
I've updated bitcode, and if you try and build the musli test suite right now like this: ``` cargo build -p tests --no-default-features --features no-rt,std,alloc,bitcode-derive ``` You get the following...
This would allow bitcode to serialize/deserialize arbitrary bytes (like non utf-8 strings) to be serialized/deserialized without the serde feature
I know it would be serving really different audience if it supports schema evolution (SE for short). But I would really benefit from similar encoding as bitcode but with SE...
Partial serialization and deserialization (eg through a mutable reference) would allow for further space / bandwidth optimizations by giving users the option of rolling out their own fieldwise change detection....
Consider adding a schema language, like Capnp, Flatbuffers, and the like. From there, a code generator could, in a first step, generate Rust types with the known bitcode (and/or serde)...
Serde has `#[serde(deserialize_with = "path")]` in order to deserialize using a custom function. I'm not sure how easy that would be to implement in bitcode. The issue I currently have...
I try this awesome library to create firmware for microcontrollers. Because it supports `no_std` I expected it works but seems currently `Encoder` and `Decoder` implementations uses `Vec` type from `std`/`alloc`....
Works by converting them to/from `Result`, `[u8; 4]`, and `[u8; 16]`, which are already supported. This is to avoid additional `unsafe` code. Manual re-implementation might yield better performance.
In serde, we can use `#[serde(skip)]` on fields we don't want to serialize/deserialize. Here is an example: ``` #[derive(Serialize, Deserialize)] struct A { xxxx: B, #[serde(skip)] yyyy: C, } ```...