#tree #ipfs #node #unix-fs #file-tree #block #unix-f

ipfs-unixfs

UnixFs tree support

3 releases (breaking)

0.2.0 Sep 23, 2020
0.1.0 Aug 14, 2020
0.0.1 Jun 18, 2020

#5 in #unix-fs

Download history 24766/week @ 2024-09-18 23420/week @ 2024-09-25 31536/week @ 2024-10-02 29734/week @ 2024-10-09 33772/week @ 2024-10-16 30273/week @ 2024-10-23 32070/week @ 2024-10-30 32148/week @ 2024-11-06 27334/week @ 2024-11-13 25442/week @ 2024-11-20 24947/week @ 2024-11-27 26659/week @ 2024-12-04 23057/week @ 2024-12-11 17772/week @ 2024-12-18 6252/week @ 2024-12-25 18164/week @ 2025-01-01

70,672 downloads per month
Used in 8 crates (3 directly)

MIT/Apache

215KB
4.5K SLoC

ipfs-unixfs

Goals

  • blockstore API independent way to traverse the merkledag
    • the core read API does not deal with loading blocks
    • instead access to interesting Cids is given

Status

  • unfiltered walking of known unixfs trees
  • creation of balanced file trees
  • creation of non HAMT-sharded directory trees

See the docs at https://docs.rs/ipfs-unixfs.

License

MIT or APL2.


lib.rs:

ipfs-unixfs: UnixFs tree support in Rust.

The crate aims to provide a blockstore implementation independent of the UnixFs implementation by working on slices and not doing any IO operations.

The main entry point for extracting information and/or data out of UnixFs trees is ipfs_unixfs::walk::Walker. To resolve IpfsPath segments over dag-pb nodes, ipfs_unixfs::resolve should be used.

Dependencies

~4–10MB
~101K SLoC