[][src]Crate ipfs_unixfs

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.

Re-exports

pub use dir::resolve;
pub use dir::MaybeResolved;
pub use dir::ResolveError;

Modules

dagpb

Support operations for the dag-pb, the outer shell of UnixFS

dir

Directory and directory tree support

file

File support.

symlink

Symlink creation support UnixFS symlink support. UnixFS symlinks are UnixFS messages similar to single block files, but the link name or target path is encoded in the UnixFS::Data field. This means that the target path could be in any encoding, however it is always treated as an utf8 Unix path. Could be that this is wrong.

walk

Support for walking over all UnixFs trees

Structs

InvalidCidInLink

A link could not be transformed into a Cid.

Metadata

A container for the UnixFs metadata, which can be present at the root of the file, directory, or symlink trees.

UnexpectedNodeType

Wrapper around the unexpected UnixFs node type, allowing access to querying what is known about the type.

Enums

LookupError

Errors which can occur when looking up a HAMTSharded directory.