Skip to main content

Module settings

Module settings 

Source
Expand description

Settings, and where their values come from.

settings.toml in the repository root is the source of truth. build.rs turns it into the Settings struct, its Default, and the SETTINGS metadata slice included below. Nothing here restates what a setting is — only how a value is chosen for it.

Precedence, highest first: CLI flag, environment variable, tak.toml, declared default. A source that is absent is skipped rather than treated as empty, so setting a value in tak.toml is not undone by the flag being unused.

Structs§

Overrides
Values supplied on the command line.
SettingMeta
Static description of one setting, for tak settings and docs.
Settings
Every setting, resolved.

Constants§

SETTINGS
Every setting tak supports, in registry order.

Functions§

from_cli
Treat an empty vector from clap as “flag not given”.

Type Aliases§

EnvLookup
How the process environment is read.