#tree #ipfs #unix-fs #file-tree #traversal #unix-f

rust-unixfs

UnixFs tree support

11 releases

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

#730 in Filesystem

Download history 39/week @ 2024-09-16 176/week @ 2024-09-23 115/week @ 2024-09-30 53/week @ 2024-10-07 61/week @ 2024-10-14 34/week @ 2024-10-21 9/week @ 2024-10-28 5/week @ 2024-11-04 16/week @ 2024-11-18 40/week @ 2024-11-25 47/week @ 2024-12-02 48/week @ 2024-12-09 167/week @ 2024-12-16 127/week @ 2024-12-23 57/week @ 2024-12-30

406 downloads per month
Used in 4 crates (3 directly)

MIT/Apache

220KB
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

~6–13MB
~162K SLoC