渲染zh-Hans

manifest

Translation status: 简体中文 reader-locale proof. Code fences render through the zh-Hans pipeline; prose is canonical Latin.

faber.toml package metadata for build, run, and test.

Aliases: faber.toml, package manifest

Syntax: faber.toml

Category#

package

Examples#

radix/corpus/meta/manifest.fab (canonical · concept)#

faber.toml package metadata for build, run, and test.

# =============================================================================
# manifest — faber.toml package metadata for build, run, and test.
# =============================================================================
#
# What this teaches:
#   • the package manifest file `faber.toml` — configures build, run, and test for a Faber package
#   • key manifest sections: `[package]`, `[paths]`, `[build]`
#
# Common mistakes:
#   • Omitting the required [package], [paths], or [build] sections — a valid faber.toml must include all three.
#
# See also: targets, cli, incipit, proba
# =============================================================================

# meta/manifest — package manifest (META)
#
# Website/tooling documents faber.toml; this exemplum is not a manifest file.
#
# Example package layout:
#
#   faber.toml
#   src/main.fab
#
# Example faber.toml:
#
#   [package]
#   name = "salve"
#   version = "0.1.0"
#   edition = "2026"
#
#   [paths]
#   source = "src"
#   entry = "main.fab"
#
#   [build]
#   target = "rust"
#   kind = "bin"
#
# GRAMMAR:
#   packageManifest :← toml document (faber tool, not Faber source)
#
# EXPECTED OUTPUT:
#   manifest exemplum
#
# BACKEND:
#   META-only — runnable body is compile smoke only.

main {
    print "manifest exemplum — configure packages via faber.toml"
}

Expected output:

manifest exemplum — configure packages via faber.toml