serde-xdr

Crates.ioserde-xdr
lib.rsserde-xdr
version0.6.0
sourcesrc
created_at2017-10-03 18:18:45.990127
updated_at2020-11-23 00:22:21.110091
descriptionXDR serialization and deserialization for Serde
homepagehttps://github.com/jvff/serde-xdr
repository
max_upload_size
id34310
size137,277
Janito Vaqueiro Ferreira Filho (jvff)

documentation

README

XDR serialization and deserialization for Serde

This crate implements serialization and deserialization of the External Data Representation Standard (XDR) for the Serde serialization and deserialization framework.

Usage

To use the official version published on crates.io, add the following to your Cargo.toml file:

[dependencies]
serde-xdr = "0.6"

To serialize and deserialize data, you can use the provided helper functions:

  • xdr_serde::from_bytes(&mut bytes) -> Result<T>
  • xdr_serde::from_reader(&mut reader) -> Result<T>
  • xdr_serde::to_bytes(&object_to_serialize) -> Result<Vec<u8>>
  • xdr_serde::to_writer(&mut writer, &object_to_serialize) -> Result<()>

A more complete example is available in the documentation.

Status

This crate should not be considered stable before more thorough real-world tests have been made. If you find any bugs or inconsistencies, please report them as GitHub issues.

One thing that is currently lacking tests is serialization and deserialization failure conditions.

Documentation also could be improved.

Commit count: 0

cargo fmt