[][src]Module ipfs::ipld

IPLD dag-json, dag-cbor and some dag-pb functionality.

This code was adapted from https://github.com/ipfs-rust/rust-ipld, and most of its code is the same as at revision b2286c53c13f3eeec2a3766387f2926838e8e4c9; it used to be a direct dependency, but recent updates to cid and multihash crates made it incompatible with them.

Modules

dag_cbor

DAG-CBOR codec.

dag_json

DAG-JSON codec.

dag_pb

DAG-Protobuf codec.

ipld_macro

Structs

IpldIter

Ipld iterator.

Enums

BlockError

Block error.

Ipld

Ipld

IpldError

Ipld type error.

IpldIndex

An index into ipld

Constants

MAX_BLOCK_SIZE

The maximum block size is 1MiB.

Functions

decode_ipld

Decode block to ipld.

encode_ipld

Encode ipld to bytes.

validate

Validate a block.