rust-helia 0.1.3

An implementation of IPFS in Rust
Documentation

Helia

An implementation of IPFS in Rust

This crate provides a create_helia function that returns an object implementing the [Helia] trait. Pass it to other modules like helia-unixfs to make files available on the distributed web.

Example

use rust_helia::create_helia;
use cid::Cid;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let helia = create_helia(None).await?;
    
    // Use helia with other modules
    // let fs = helia_unixfs::create_unixfs(helia);
    // fs.cat(&cid).await?;
    
    Ok(())
}