ipld-collections

Crates.ioipld-collections
lib.rsipld-collections
version0.3.0
sourcesrc
created_at2020-05-22 13:39:00.416447
updated_at2020-10-05 17:48:29.94001
descriptionmultiblock ipld collections
homepage
repositoryhttps://github.com/ipfs-rust/rust-ipld-collections
max_upload_size
id244593
size142,794
David Craven (dvc94ch)

documentation

README

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).

Commit count: 65

cargo fmt