Skip to content

Commit b662dcf

Browse files
committed
Add back docs from old blobs
1 parent e41ef71 commit b662dcf

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/lib.rs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
//! Blobs layer for iroh.
2+
//!
3+
//! The crate is designed to be used from the [iroh] crate.
4+
//!
5+
//! It implements a [protocol] for streaming content-addressed data transfer using
6+
//! [BLAKE3] verified streaming.
7+
//!
8+
//! It also provides a [store] module for storage of blobs and outboards,
9+
//! as well as a [persistent](crate::store::fs) and a [memory](crate::store::mem)
10+
//! store implementation.
11+
//!
12+
//! To implement a server, the [provider] module provides helpers for handling
13+
//! connections and individual requests given a store.
14+
//!
15+
//! To perform get requests, the [get] module provides utilities to perform
16+
//! requests and store the result in a store, as well as a low level state
17+
//! machine for executing requests.
18+
//!
19+
//! The [api::downloader] module provides a component to download blobs from
20+
//! multiple sources and store them in a store.
21+
//!
22+
//! [BLAKE3]: https://github.com/BLAKE3-team/BLAKE3-specs/blob/master/blake3.pdf
23+
//! [iroh]: https://docs.rs/iroh
124
mod hash;
225
pub mod store;
326
pub use hash::{BlobFormat, Hash, HashAndFormat};
@@ -11,11 +34,13 @@ mod net_protocol;
1134
pub use net_protocol::BlobsProtocol;
1235
pub mod protocol;
1336
pub mod provider;
14-
pub mod test;
1537
pub mod ticket;
1638
pub(crate) mod util;
1739

1840
#[cfg(test)]
1941
mod tests;
2042

43+
#[doc(hidden)]
44+
pub mod test;
45+
2146
pub use protocol::ALPN;

0 commit comments

Comments
 (0)