Module index_file

Source
Expand description

This module handles everything to do with index files.

Index files are for creating set of information for identifying a published package. They are used by forc while fetching to actually convert a registry index into a IPFS CID. We also add some metadata to this index files to enable forc to do “more clever” fetching during build process. By moving dependency resolution from the time a package is fetched to the point we start fetching we are actively enabling forc to fetch packages and their dependencies in parallel.

There are two main things forc needs to be able to do for index files: 1: Creation of index files from published packages 2: Calculating correct path for given package index.

Structs§

IndexFile
PackageDependencyIdentifier
PackageEntry
A unique representation of each published package to forc.pub. Contains: