4个版本 (2个重大更改)

0.3.0 2020年10月5日
0.2.0 2020年8月25日
0.1.1 2020年5月22日
0.1.0 2020年5月22日

#60 in #ipld

MIT/Apache

44KB
1K SLoC

Rust IPLD集合库

实现多块向量和哈希表的Rust基本ipld集合库。

入门

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(())
}

许可证

双许可,受MIT或Apache许可证(版本2.0)保护。

依赖关系

~6–19MB
~231K SLoC