Docs.rs
  • iroh-blobs-0.28.0
    • iroh-blobs 0.28.0
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • dignifiedquire
    • github:n0-computer:iroh-publisher
    • github:n0-computer:iroh-maintainers
    • Dependencies
      • anyhow ^1 normal
      • async-channel ^2.3.1 normal
      • bao-tree ^0.13 normal
      • bytes ^1.7 normal
      • chrono ^0.4.31 normal
      • derive_more ^1.0.0 normal
      • futures-buffered ^0.2.4 normal
      • futures-lite ^2.3 normal
      • genawaiter ^0.99.1 normal
      • hashlink ^0.9.0 normal optional
      • hex ^0.4.3 normal
      • iroh-base ^0.28.0 normal
      • iroh-io ^0.6.0 normal
      • iroh-metrics ^0.28.0 normal
      • iroh-net ^0.28.0 normal
      • iroh-router ^0.28.0 normal
      • num_cpus ^1.15.0 normal
      • oneshot ^0.1.8 normal
      • parking_lot ^0.12.1 normal optional
      • pin-project ^1.1.5 normal
      • postcard ^1 normal
      • iroh-quinn ^0.11 normal
      • rand ^0.8 normal
      • range-collections ^0.4.0 normal
      • redb ^2.0.0 normal optional
      • redb ^1.5.1 normal optional
      • reflink-copy ^0.1.8 normal optional
      • self_cell ^1.0.1 normal
      • serde ^1 normal
      • serde-error ^0.1.3 normal
      • smallvec ^1.10.0 normal
      • tempfile ^3.10.0 normal optional
      • thiserror ^1 normal
      • tokio ^1 normal
      • tokio-util ^0.7 normal
      • tracing ^0.1 normal
      • tracing-futures ^0.2.5 normal
      • futures-buffered ^0.2.4 dev
      • futures-util ^0.3.30 dev
      • http-body ^0.4.5 dev
      • iroh-test ^0.28 dev
      • proptest ^1.0.0 dev
      • rcgen ^0.12.0 dev
      • rustls ^0.23 dev
      • serde_json ^1.0.107 dev
      • serde_test ^1.0.176 dev
      • tempfile ^3.10.0 dev
      • testresult ^0.4.0 dev
      • tokio ^1 dev
      • tracing-subscriber ^0.3 dev
    • Versions
    • 100% of the crate is documented
  • This release has been yanked, go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate iroh_blobs

iroh_blobs0.28.0

  • All Items

Crate Items

  • Re-exports
  • Modules
  • Structs
  • Enums
  • Constants

Crates

  • iroh_blobs

Crate iroh_blobs

Source
Expand description

Blobs layer for iroh.

The crate is designed to be used from the iroh crate, which provides a high level interface, but can also be used standalone.

It implements a protocol for streaming content-addressed data transfer using BLAKE3 verified streaming.

It also provides a store interface for storage of blobs and outboards, as well as a persistent and a memory store implementation.

To implement a server, the provider module provides helpers for handling connections and individual requests given a store.

To perform get requests, the get module provides utilities to perform requests and store the result in a store, as well as a low level state machine for executing requests.

The downloader module provides a component to download blobs from multiple sources and store them in a store.

Re-exports§

  • pub use crate::util::Tag;
  • pub use crate::util::TempTag;

Modules§

  • downloaderdownloader
    Handle downloading blobs and collections concurrently and from nodes.
  • export
    Functions to export data from a store
  • format
    Defines data formats for HashSeq.
  • get
    The client side API
  • hashseq
    traits related to collections of blobs
  • metrics
    Metrics for iroh-blobs
  • net_protocoldownloader
    Adaptation of iroh-blobs as an iroh protocol.
  • protocol
    Protocol for transferring content-addressed blobs and collections over quic connections. This can be used either with normal quic connections when using the quinn crate or with magicsock connections when using the iroh-net crate.
  • provider
    The server side API
  • store
    Implementations of blob stores
  • util
    Utility functions and types.

Structs§

  • Hash
    Hash type used throughout.
  • HashAndFormat
    A hash and format pair

Enums§

  • BlobFormat
    A format identifier

Constants§

  • IROH_BLOCK_SIZE
    Block size used by iroh, 2^4*1024 = 16KiB

Results

Settings
Help
trait
iroh_blobs::downloader::Getter
Trait modelling performing a single request over a …
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.