Type Definition forc_pkg::DependencyName

source · []
pub type DependencyName = String;
Expand description

The name specified on the left hand side of the = in a depenedency declaration under [dependencies] within a forc manifest.

The name of a dependency may differ from the package name in the case that the dependency’s package field is specified.

For example, in the following, foo is assumed to be both the package name and the dependency name:

foo = { git = "https://github.com/owner/repo", branch = "master" }

In the following case however, foo is the package name, but the dependency name is foo-alt:

foo-alt = { git = "https://github.com/owner/repo", branch = "master", package = "foo" }