# hypercore
[![crates.io version][1]][2] [![build status][3]][4]
[![downloads][5]][6] [![docs.rs docs][7]][8]
Secure, distributed, append-only log structure. Adapted from
[mafintosh/hypercore](https://github.com/datrs/hypercore).
- [Documentation][8]
- [Crates.io][2]
## Usage
```rust,ignore
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
```sh
$ cargo add hypercore
```
## License
[MIT](./LICENSE-MIT) OR [Apache-2.0](./LICENSE-APACHE)
[1]: https://img.shields.io/crates/v/hypercore.svg?style=flat-square
[2]: https://crates.io/crates/hypercore
[3]: https://img.shields.io/travis/datrs/hypercore.svg?style=flat-square
[4]: https://travis-ci.org/datrs/hypercore
[5]: https://img.shields.io/crates/d/hypercore.svg?style=flat-square
[6]: https://crates.io/crates/hypercore
[7]: https://docs.rs/hypercore/badge.svg
[8]: https://docs.rs/hypercore