4 releases (2 breaking)

0.3.0 Oct 5, 2020
0.2.0 Aug 25, 2020
0.1.1 May 22, 2020
0.1.0 May 22, 2020

#56 in #ipld

MIT/Apache

44KB
1K SLoC

Rust IPLD collections library

Basic rust ipld collections library implementing a multiblock vector and hash map.

Getting started

use ipfs_embed::{Config, Store};
use ipld_collections::List;

#[async_std::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let config = Config::from_path("/tmp/db")?;
    let store = Store::new(config)?;
    let mut list = List::new(store, 64, 256).await?;
    list.push(0 as i64).await?;
    Ok(())
}

License

Dual licensed under MIT or Apache License (Version 2.0).

Dependencies

~7–15MB
~223K SLoC