Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

relativePathDigest

Fetch.relativePathDigest
pub fn relativePathDigest(pkg_root: Path, cache_root: Directory) Package.Hash

File

lib/compiler/Maker/Fetch.zig:1039

Code

pub fn relativePathDigest(pkg_root: Path, cache_root: Directory) Package.Hash {
    return .initPath(pkg_root.sub_path, pkg_root.root_dir.eql(cache_root));
}