#tree #file-tree #ipfs #unix-fs #traversal #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

#574 in Filesystem

Download history 117/week @ 2024-05-19 72/week @ 2024-05-26 82/week @ 2024-06-02 82/week @ 2024-06-09 34/week @ 2024-06-16 30/week @ 2024-06-23 62/week @ 2024-06-30 90/week @ 2024-07-07 50/week @ 2024-07-14 26/week @ 2024-07-21 96/week @ 2024-07-28 40/week @ 2024-08-04 15/week @ 2024-08-11 15/week @ 2024-08-18 14/week @ 2024-08-25 42/week @ 2024-09-01

88 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

~1.8–9.5MB
~91K SLoC