Skip to main content

GLOBAL_LAYER

Constant GLOBAL_LAYER 

Source
pub const GLOBAL_LAYER: &str = "global";
Expand description

The name of the layer built from the top-level [keys] table.

It is the one name this crate assigns: the bare [keys] table (and an explicit [layers.global], if present) build the layer under this key, which is always present in BuildOutput::layers even when empty. Every other layer name is opaque to the library — it is just the label the config author chose; the library attaches no meaning to it and never decides when a layer is active. That selection stays caller-side (see keymap_core::resolve_layered).