cid_fork_rlay

Crates.iocid_fork_rlay
lib.rscid_fork_rlay
version0.3.1
sourcesrc
created_at2019-08-19 23:02:12.626508
updated_at2019-08-19 23:02:12.626508
descriptionCID in rust
homepagehttps://github.com/multiformats/rust-cid
repository
max_upload_size
id158200
size17,278
Maximilian Goisser (hobofan)

documentation

README

rust-cid

Travis CI crates.io

CID implementation in Rust.

Table of Contents

Install

First add this to your Cargo.toml

[dependencies]
cid = "*"

Then run cargo build.

Usage

extern crate cid;
extern crate multihash;

use multihash::Hash;
use cid::{Cid, Codec, Version};
let h = multihash::encode(multihash::Hash::SHA2256, b"beep boop").unwrap();

let cid = Cid::new(Codec::DagProtobuf, Version::V1, &h);

let data = cid.to_bytes();
let out = Cid::from(data).unwrap();

assert_eq!(cid, out);

Maintainers

Captain: @dignifiedquire.

Contribute

Contributions welcome. Please check out the issues.

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2017 Friedel Ziegelmayer

Commit count: 0

cargo fmt