derse
A simple binary serialization protocol for Rust.
Usage
To use this library, add the following to your Cargo.toml:
[]
= "0.1"
Then, you can import and use the components as follows:
use ;
// 1. serialization for basic types.
let ser = "hello world!";
let bytes = ser..unwrap;
let der = Stringdeserialize.unwrap;
assert_eq!;
// 2. serialization for custom structs.
let ser = default;
let bytes = ser..unwrap;
let der = deserialize.unwrap;
assert_eq!;