Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interpolation

String values in breadbox.toml can contain ${namespace:key} tokens. Arrays and tables are searched too. Tokens are expanded before Breadbox applies the config, so you can avoid repeating values from Cargo or from the config itself.

NamespaceSource
configA dotted path into the original config.
manifestFields from your Cargo.toml and selected binary.
buildResolved project and build paths.

${config:...}

Use a dotted path into the config. Referenced values must be strings or scalar values that can be written as text.

[linux]
categories = "Utility;Development;"
description-long = "${config:linux.categories} application"

${manifest:...}

FieldDescription
package-namePackage name.
versionPackage version.
descriptionPackage description. Error if unset.
repositoryRepository URL. Error if unset.
licenseSPDX license. Error if unset.
authorsAll authors, joined with ", ".
binary-nameSelected binary target name.
binary-sourceSelected binary source path.
binary-required-featuresBinary required-features, joined with ", ".
default-runpackage.default-run. Error if unset.
default-featuresEnabled default features, joined with ", ".
workspace-rootCargo workspace root.
target-directoryCargo target directory.

List fields accept a .N suffix for one element, for example ${manifest:authors.0}.

app-name = "${manifest:package-name} (${manifest:version})"

[linux]
identifier = "com.example.${manifest:package-name}"
description-long = "${manifest:description}"

${build:...}

FieldDescription
archx86, x86_64, arm or aarch64.
profileCargo profile supplied to build or info.
project-rootAbsolute project root.
out-dirResolved output directory.
binary-pathResolved application binary path.
[install.linux.files.icon]
source = "${build:project-root}/assets/${manifest:package-name}.svg"
destination = "/usr/share/icons/hicolor/scalable/apps/${manifest:package-name}.svg"