Skip to content

Commit

Permalink
document src/lib.rs (#62)
Browse files Browse the repository at this point in the history
* document-src-lib-rs

* changed wording in lib.rs docs

Co-Authored-By: FreddieRidell <[email protected]>

* not sure how cargo fmt missed this the first time
  • Loading branch information
FreddieRidell authored and yoshuawuyts committed Apr 4, 2019
1 parent eb0ecf3 commit 0719a5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
#![forbid(missing_docs)]
#![cfg_attr(test, deny(warnings))]

//! ## Introduction
//! Hypercore is a secure, distributed append-only log. Built for sharing
//! large datasets and streams of real time data as part of the [Dat] project.
//! This is a rust port of [the original node version][dat-node]
//! aiming for interoperability. The primary way to use this crate is through the [Feed] struct.
//!
//!
//! ## Example
//! ```rust
//! extern crate hypercore;
Expand All @@ -20,6 +27,10 @@
//! println!("{:?}", feed.get(0)); // prints "hello"
//! println!("{:?}", feed.get(1)); // prints "world"
//! ```
//!
//! [dat-node]: https://github.com/mafintosh/hypercore
//! [Dat]: https://github.com/datrs
//! [Feed]: crate::feed::Feed
#[macro_use]
extern crate failure;
Expand Down

0 comments on commit 0719a5a

Please sign in to comment.