sphalerite 0.1.0

A dependency-free crate for binary serialization
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented0 out of 0 items with examples
  • Size
  • Source code size: 17.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Phil-hacker/sphalerite
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Phil-hacker

Sphalerite

A dependency-less crate for simple binary serialization and deserialization in rust.

Usage

To use the crate simply install it using cargo (cargo add sphalerite) and implement the Transcode trait.

The Transcode trait implements following functions:

fn to_bytes(&self,_writer: &mut dyn std::io::Write) -> std::io::Result<usize>
fn from_bytes(&self,_reader: &mut dyn std::io::Read) -> std::io::Result<Self>

To serialize a variable call to_bytes and for deserialization call from_bytes