Skip to main content

Module settings

Module settings 

Source
Expand description

Settings, and where their values come from.

The Settings struct below is the registry: #[derive(usage_rs::Config)] generates the metadata slice (SETTINGS_PROPS), the resolver registry (SETTINGS_REGISTRY), the reader that fills the struct from a resolution, and the spec config block that documents it. There is no settings.toml and no build-script generator left to keep in step with this file.

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§

CliLayer
Settings given on the command line.
EnvLayer
Settings read from environment variables.
Settings
Every setting tak supports, resolved.
TakConfigLayer
tak.toml as a settings layer.

Functions§

config_source
The source kind tak.toml contributes under, for source(...) bindings and for TakConfigLayer.