Crate rust_multicodec [] [src]

This library is a Rust implementation of the https://github.com/multiformats/multicodec project.

This crate also can be used to encode and decode an object. Currently only JSON is supported

Modules

codec
codec_prefix

Structs

DecodeResult

Functions

decode

Decodes a byte array back into an Object. Note that the object must implement Deserialize trait from serde's lib

encode

Returns the encoded object with a prefix of the given codec. Note that the object must implement Serialize trait from serde's lib