Early developmentPre-1.0: syntax may change.Release historyGitHub
Build an add-on

vectrune.toml

A directory installed by path needs a vectrune.toml at its root. For a versioned package, put it at the Git root. The top-level version describes the manifest format and defaults to 1. Vectrune rejects unknown keys.

Package metadata and exports

vectrune.toml
version = 1

[package]
name = "example-health"
version = "0.1.0"
description = "Example reusable liveness route"
authors = ["Vectrune contributors"]
license = "MIT"
readme = "README.md"
keywords = ["rest", "health"]

[compatibility]
vectrune = ">=0.3.13"
hosts = ["native"]
app_types = ["REST"]

[exports]
health = "health.rune"
  • [package] is optional. When present, supply a name using lowercase letters, digits, hyphens, or underscores and a semantic version such as 0.1.0. Description, authors, license, repository, readme, and keywords are optional. The readme must be an existing file inside the package.
  • [compatibility] records supported releases in vectrune, environments in hosts, and application types in app_types. Vectrune validates the syntax. The author tests and documents actual compatibility.
  • [exports] labels existing package-relative .rune files. The labels document entry points. Consumers import by file path, such as pkg:example-health/health.rune. Keep export and readme paths inside the package and use forward slashes.
  • The alias is the consumer’s import name. A path install or direct Git add defaults to the native owner, then the package name, then the directory or repository name. A catalog add uses the catalog ID. Use --name to choose an alias.

Declare an add-on dependency

vectrune.toml
[dependencies.health]
git = "https://github.com/davethomas11/vectrune-health.git"
tag = "v0.1.0"

Under [dependencies.ALIAS], set git and exactly one of tag or rev. A rev is a full commit hash. Set signer to require an OpenPGP signature from the given primary key fingerprint. A package’s own imports resolve against its declarations, so this package uses pkg:health/health.rune.

Commit vectrune.toml with vectrune.lock for the consuming project. The lock pins exact commits and tree digests through the dependency graph. Use deps install --locked in CI. Local links and native approvals live in user data and stay outside both files. Install a linked checkout’s own Git prerequisites from that checkout.

Built entirely with Rune-Web