#tree #file-tree #traversal #node #block-store #unix-fs #unix-f

rust-unixfs

UnixFs tree support

10 releases

0.4.1 Feb 19, 2024
0.4.0 Aug 26, 2023
0.3.2 Jul 17, 2023
0.3.1 Apr 27, 2023
0.3.0-alpha Dec 8, 2022

#532 in Filesystem

Download history 586/week @ 2024-01-25 979/week @ 2024-02-01 395/week @ 2024-02-08 517/week @ 2024-02-15 599/week @ 2024-02-22 647/week @ 2024-02-29 814/week @ 2024-03-07 298/week @ 2024-03-14 418/week @ 2024-03-21 291/week @ 2024-03-28 135/week @ 2024-04-04 304/week @ 2024-04-11 560/week @ 2024-04-18 119/week @ 2024-04-25 198/week @ 2024-05-02 327/week @ 2024-05-09

1,302 downloads per month
Used in 3 crates (2 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

~3–11MB
~112K SLoC