Crate hypercore [] [src]

hypercore

[crates.io version][2] [build status][4] [downloads][6] [docs.rs docs]8

Secure, distributed, append-only log structure. Adapted from mafintosh/hypercore.

Usage

This example is not tested
extern crate hypercore;

use std::path::PathBuf;

let path = PathBuf::from("./my-first-dataset");
let feed = hypercore::Feed::new(path);

feed.append(b"hello")?;
feed.append(b"world")?;

println!("{:?}", feed.get(0)); // prints "hello"
println!("{:?}", feed.get(1)); // prints "world"

Installation

$ cargo add hypercore

License

MIT OR Apache-2.0

Modules

crypto

Cryptographic functions.

Structs

Feed

Append-only log structure.