Dependencies

To add plugins to a project put them in the [dependencies] section of the site settings and they will be resolved from the plugin registry:

[dependencies]
"std::core" = "~4"

Plugin names must be quoted.

All dependencies must specify a name and version range which can be an exact version (1.0.0) or a request range which allows for dependencies to be updated within the matching range. Versions follow the semver specification.

Local Dependencies

Plugins can also be referenced by file system path which is not portable but is useful for debugging or during the development phase when creating a plugin:

[dependencies]
"std::core" = { path = "../../plugins/std/core", version = "~4" }

Archive Dependencies

If you have packaged a plugin using upm pack it is also possible to load the plugin from the archive:

[dependencies."std::core"]
version = "*"
archive = "../../plugins/std/core/package.tar.xz"

Git Dependencies

Plugin dependencies can also be resolved using a git URL:

[dependencies."std::core"]
version = "*"
git = "https://github.com/organization/repo"

To use a sub-folder within the repository a prefix can be used:

[dependencies."std::core"]
version = "*"
git = "https://github.com/uwe-app/plugins"
prefix = "std/core"