Skip to main content

Crate atypical_config

Crate atypical_config 

Source
Expand description

Discovery and loading of atypical.toml. Each tool owns its section schema; a top-level extends layers other files beneath, see resolve.

Schema-free but not key-free: within a named array, name, drop and before are directives consumed before any schema sees them.

Enums§

Error
ResolveError
All resolution errors

Constants§

FILE_NAME

Functions§

find
The nearest FILE_NAME in start or any of its ancestors.
load
Read the file at path, resolve its extends chain, and deserialize the [key] section of the merged document.
resolve
Parse the file at path into a table, resolving its top-level extends key (a string or an array of strings). Extended documents are applied one by one in declaration order, the extending document last: tables merge key-by-key, arrays whose every entry carries a name merge by that name, any other value replaces the one beneath it.
section
Deserialize the [key] section of a TOML document as written: no extends, no directives. A document without the section is Ok(None).