#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

#580 in Filesystem

Download history 26/week @ 2024-07-22 94/week @ 2024-07-29 42/week @ 2024-08-05 15/week @ 2024-08-12 14/week @ 2024-08-19 23/week @ 2024-08-26 32/week @ 2024-09-02 4/week @ 2024-09-09 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

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

~7–14MB
~187K SLoC