liberasurecode-1.0.3 doesn't have any documentation.
liberasurecode
A Rust wrapper for openstack/liberasurecode.
Prerequisites to Build
This crate requires the following packages for building openstack/liberasurecode in the build script:
- C compiler (e.g.,
gcc
) git
make
automake
autoconf
libtool
For example, on Ubuntu, you can install those by executing the following command:
$ sudo apt install gcc git make automake autoconf libtool
Examples
Basic usage:
use ;
let mut coder = new?;
let input = vec!;
// Encodes `input` to data and parity fragments
let fragments = coder.encode?;
// Decodes the original data from the fragments (or a part of those)
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;