Serde IPLD DAG-CBOR
This is a Serde implementation for DAG-CBOR. It can be use in conjunction with libipld.
The underlying library for CBOR encoding/decoding is cbor4ii and the Serde implementation is also heavily based on their code.
This crate started as a fork of serde_cbor, thanks everyone involved there.
Usage
Storing and loading Rust types is easy and requires only minimal modifications to the program code.
use ;
use Error;
use File;
use BufReader;
// Types annotated with `Serialize` can be stored as DAG-CBOR.
// To be able to load them again add `Deserialize`.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.