#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

#573 in Filesystem

Download history 62/week @ 2024-10-04 55/week @ 2024-10-11 52/week @ 2024-10-18 9/week @ 2024-10-25 8/week @ 2024-11-01 1/week @ 2024-11-08 9/week @ 2024-11-15 25/week @ 2024-11-22 53/week @ 2024-11-29 55/week @ 2024-12-06 127/week @ 2024-12-13 129/week @ 2024-12-20 105/week @ 2024-12-27 11/week @ 2025-01-03 10/week @ 2025-01-10 4/week @ 2025-01-17

141 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