forc_pkg

Module source

Source
Expand description

Related to pinning, fetching, validating and caching the source for packages.

To add a new source kind:

  1. Add a new module.
  2. Create types providing implementations for each of the traits in this module.
  3. Add a variant to the Source and Pinned types in this module.
  4. Add variant support to the from_manifest_dep and FromStr implementations.

Modules§

git
path

Structs§

DisplayCompiling
A wrapper type for providing Display implementations for compiling msgs.
PinnedParseError
Error returned upon failed parsing of SourcePinned::from_str.

Enums§

IPFSNode
Pinned
A pinned instance of the package source.
Source
Specifies a base source for a package.

Functions§

fetch_id
Produce a unique ID for a particular fetch pass.